Jump to content

StringInStr


jezzzzy
 Share

Recommended Posts

Trying to do a simple string search with this:

StringInStr($string,'%;')

However this returns 0. If I remove the semicolon it returns a value (just the wrong one). I also tried escaping the semicolon like this:

StringInStr($string,'%\;')

Still no deal. Can't seem to find out how to search for '%;'.

Link to comment
Share on other sites

Trying to do a simple string search with this:

StringInStr($string,'%;')

However this returns 0. If I remove the semicolon it returns a value (just the wrong one). I also tried escaping the semicolon like this:

StringInStr($string,'%\;')

Still no deal. Can't seem to find out how to search for '%;'.

Using the following returns 11 (where it's located in the string) for me, does it not for you?

$string = "this is a %; string"

MsgBox (0, "", StringInStr($string, "%;"))
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...