Jump to content
Sign in to follow this  
logmein

Help in StringRegExp

Recommended Posts

logmein

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

Share this post


Link to post
Share on other sites
Malkey

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)

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  

×