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 

Difference between AHK regex tester 2.1 and AHK

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





PostPosted: Sun Nov 11, 2007 6:17 pm    Post subject: Difference between AHK regex tester 2.1 and AHK Reply with quote

haystack := " 75 98 "
pattern := "\b[0-9]+\b"

AHK regex tester 2.1 gives
out := "75"

AHK gives
out := " 75 98 "

Why the discrepancy?
Back to top
Xander



Joined: 23 Sep 2007
Posts: 142

PostPosted: Sun Nov 11, 2007 7:30 pm    Post subject: Reply with quote

Huh?
Code:

haystack := " 75 98 "
pattern := "\b[0-9]+\b"
RegExMatch(haystack, pattern, match)
MsgBox, % match

Shows 75
Back to top
View user's profile Send private message
momofsix
Guest





PostPosted: Sun Nov 11, 2007 8:21 pm    Post subject: Reply with quote

Strange. I guess I must have done something wrong. Maybe I was editing one script and kept running another script that showed 75 98.
Back to top
Display posts from previous:   
Post new topic   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