Sign in to follow this  
Followers 0
igorm

Searchin for a string

5 posts in this topic




Could convert it to an array, then use an array search?


Share this post


Link to post
Share on other sites

Maybe your helpfile is outdated, because I clearly see "\b Matches at a word boundary." documented as one of StringRegExp pattern characters.

$sNeedle = "Alice"
$x = StringRegExp(" Alice ", "\b"&$sNeedle&"\b")
ConsoleWrite($x & @CRLF)

$sNeedle = "lic"
$x = StringRegExp(" Alice ", "\b"&$sNeedle&"\b")
ConsoleWrite($x & @CRLF)

"be smart, drink your wine"

Share this post


Link to post
Share on other sites

Oh, thanks, and my help file is not outdated, but I did not know what word boundary means, since my native language is not English.

Cheers :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0