Jump to content
Sign in to follow this  
igorm

Searchin for a string

Recommended Posts

Dampe

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


Share this post


Link to post
Share on other sites
Siao

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

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  

×