c.haslam

Regexp fails on this string but not on others

2 posts in this topic

#1 ·  Posted (edited)

StringRegExp("Global $gHolidayDates = """", $gPoses0fYMDinSchtasks = '',$winVer = StringMid(@OSVersion,5)", _
"\w*(?=[($[\,)\] &+-*/\^;=<>])",1)
ConsoleWrite(@error&'  '&@extended&@CRLF)

Writes 2  20 . Character at position 20 is *

Any suggestions?

Edited by c.haslam

...chris

Share this post


Link to post
Share on other sites



I see my error: - should be escaped. With - escaped, it writes 0 7


...chris

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