Where do I get it? :roll:
Same address as the previous one: Regular Expressions (RegEx) for AutoHotkey
I want to count e; in "One;Two;Three;Four;Five",
the result will be 2!
Yes, that's what I gave (again, lastest version!). I was lost because Titan
provided a complex expression...
This will return count in my version:
v := RegExMatch(var, "e")
Well...it seems that above doesn't work well...
Uh, no, in both versions, it returns the found position...
Thats cool too.. but I meant searching a whole word.. For example:
"The Theft Broke-in Through The Window"
I want to search for "the" ( case insensitive ) and result should be 2 .. not 3
Ah, counting a given word. No problem:
str = The Theft Broke-in Through The Window
RegExReplace(str, "i)\bthe\b", "", count)
\b is "word bound", working also on string ends.