hm..i think that bcteh_98 will be confused after read answers![]()
hm..i think that bcteh_98 will be confused after read answers![]()
a life without programming is like an empty bottle![]()
Thank it work fine. But I still have a small problem.
regexp = \bOK\b
"I am OK_Now" Index of Match -1 ok fine
"I am (OK) Now" Index of Match 7 ok fine
"I am OK@Now" Index of Match 5 ok fine
=================================
"I am NOT-OK Now" Index of Match 9
"I am OK-Now" Index of Match 5
I don't want the last two result to match,
how to write a regular expressions to make it not Match -1.
Regards
Teh
Use a regexp of "[ \t\n]OK[ \t\n]". Or: "[^ \t\n]+" which will match a sequence of characters not containing a space, tab or newline in general.
Bookmarks