Jump to content

Help in StringRegExp


Recommended Posts

How can I check the existance of these strings :

1. shell\open\Command=Images.exe

2. shell\explore\Command=Images.exe

3. run=Images.exe

4. open=Images.exe

Edited by logmein
Link to comment
Share on other sites

I am guessing you may want something like this.

Local $sRes = ""
Local $aSearch[4] = [ _
        "shell\open\Command=Images.exe", _
        "shell\explore\Command=Images.exe", _
        "run=Images.exe", _
        "open=Images.exe"]
Local $str = "A talk in the park. shell\explore\Command=Images.exeWhat the?open=Images.exe"

For $i = 0 To UBound($aSearch) - 1
    If StringRegExp($str, "(\Q" & $aSearch[$i] & "\E)") Then $sRes &= ($i + 1) & ". " & $aSearch[$i] & @CRLF
Next

MsgBox(0, "Results", "Found:- " & @CRLF & $sRes)
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...