Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Multiple replacement with StringRegExpReplace

$
0
0
Hello,

Could you please tell me what's wrong in the following instruction :

$Output = StringRegExpReplace($Input, "[àâäçéèêëîïñôöùûüÀÂÄÇÉÈÊËÎÏÑÔÖÙÛÜ]", "[aaaceeeeiinoouuuAAACEEEEIINOOUUU]")

I thought it would replace each character one by one, like the following sed command :
sed "y/[àâäçéèêëîïñôöùûüÀÂÄÇÉÈÊËÎÏÑÔÖÙÛÜ]/[aaaceeeeiinoouuuAAACEEEEIINOOUUU]/" Input.txt > Output.txt

But apparently, the destination regexp is taken as a whole.

For example, I get :
Déjà -> D[aaaceeeeiinoouuuAAACEEEEIINOOUUU]j[aaaceeeeiinoouuuAAACEEEEIINOOUUU]
instead of :
Déjà -> Deja

Is there a simple command for multiple regexp vs. regexp replacement ?
If no, I'll do some kind of loop to replace each characters one by one.

Cheers !

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>