AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RegExMatch

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Seeker88
Guest





PostPosted: Sat Feb 27, 2010 1:15 am    Post subject: RegExMatch Reply with quote

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

PostPosted: Sat Feb 27, 2010 2:55 am    Post subject: Reply with quote

Code:

str      = Hello
needle   = Goodbye\s%str%\sGoodbye
haystack = Goodbye Hello Goodbye

If RegExMatch(haystack, needle)
   Msgbox Match!
Back to top
View user's profile Send private message
sinkfaze



Joined: 18 Mar 2008
Posts: 5043
Location: the tunnel(?=light)

PostPosted: Sat Feb 27, 2010 4:54 am    Post subject: Reply with quote

Another option:

Code:
RegExMatch(A_LoopField,"U)href=""/" VARIABLE "/../(.*)\.html",adn)

_________________
Try Quick Search for Autohotkey or see the tutorial for newbies.
Back to top
View user's profile Send private message Send e-mail
Seeker88
Guest





PostPosted: Sat Feb 27, 2010 6:28 am    Post subject: Reply with quote

sinkfaze wrote:
Another option:

Code:
RegExMatch(A_LoopField,"U)href=""/" VARIABLE "/../(.*)\.html",adn)


Perfect Razz
Thanks.
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group