Jump to content
Sign in to follow this  

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

Share this post

Link to post
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", _
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

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.