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

Stringregexpreplace A Specifc Iinstance In A String?

$
0
0
Hi,
Thank You for taking the time to read my post.

Could someone please post a brief example of using StringRegExpReplace() to replace a word at a specific count.
For example I'm trying to replace only the 2nd instance of the word "Dog" with "Turtle" in the string below.
[ autoit ]      
$sStr = "CatDogMouseBirdHorseDogBirdHorseMouseBirdDogAnt"

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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