| View previous topic :: View next topic |
| Author |
Message |
momofsix Guest
|
Posted: Sun Nov 11, 2007 6:17 pm Post subject: Difference between AHK regex tester 2.1 and AHK |
|
|
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
|
Posted: Sun Nov 11, 2007 7:30 pm Post subject: |
|
|
Huh?
| Code: |
haystack := " 75 98 "
pattern := "\b[0-9]+\b"
RegExMatch(haystack, pattern, match)
MsgBox, % match
|
Shows 75 |
|
| Back to top |
|
 |
momofsix Guest
|
Posted: Sun Nov 11, 2007 8:21 pm Post subject: |
|
|
| 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 |
|
 |
|