Is it possible in Textpad search / replace words with accents?
I have in Preferences of Textpad:
Configure/Preferences/Document Classes
for all the Document Classes: UTF-8 in 2 places: Write BOM and Default Encoding
When a look for
<span class="smcap">Beristáin</span>
with search:
<span class="smcap">\([^<]*\)</span>
replace:
<span class="smcap">\U\1</span>
I got:
<span class="smcap">BERISTáIN</span> ("á" don't change)
I tried with other combinations like:
search:
<span class="smcap">\([^<]*[a-zA-Z áéÃóúÃ�ÉÃ�ÓÚÑñÜü]+\)</span>
replace:
<span class="smcap">\U\1</span>
but not success.
Any ideas? Thank you.
Search / replace words with accents
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
Unfortunately, although TextPad itself knows that the uppercase versions of á, é, Ã, ó, ú are Ã�, É, Ã�, Ó, Ú, its tired old search engine (in both literal and regex mode) doesn't. If, for example, you search for á it won't find Ã�, and vice versa, regardless of whether you've selected Match case. And if, using Search | Replace you ask it to replace á with its uppercase version it will leave it as it is. There's nothing you can do about this.