| View previous topic :: View next topic |
| Author |
Message |
Seeker88 Guest
|
Posted: Sat Feb 27, 2010 1:15 am Post subject: RegExMatch |
|
|
Hi,
I was wondering if someone could tell me how to reference a variable
inside a regexmatch pattern ?
Such as :
| Code: | | regexmatch(a_loopfield,"U)href=""/%VARIABLE%/../(.*)\.html",adn) |
Thank you. |
|
| Back to top |
|
 |
entropic
Joined: 21 Dec 2008 Posts: 181
|
Posted: Sat Feb 27, 2010 2:55 am Post subject: |
|
|
| Code: |
str = Hello
needle = Goodbye\s%str%\sGoodbye
haystack = Goodbye Hello Goodbye
If RegExMatch(haystack, needle)
Msgbox Match!
|
|
|
| Back to top |
|
 |
sinkfaze
Joined: 18 Mar 2008 Posts: 5043 Location: the tunnel(?=light)
|
|
| Back to top |
|
 |
Seeker88 Guest
|
Posted: Sat Feb 27, 2010 6:28 am Post subject: |
|
|
| sinkfaze wrote: | Another option:
| Code: | | RegExMatch(A_LoopField,"U)href=""/" VARIABLE "/../(.*)\.html",adn) |
|
Perfect
Thanks. |
|
| Back to top |
|
 |
|