Jump to content

Searchin for a string


 Share

Recommended Posts

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"

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...