Jump to content
c.haslam

Regexp fails on this string but not on others

Recommended Posts

c.haslam
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

Spoiler

CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard

 

Share this post


Link to post
Share on other sites
c.haslam

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


Spoiler

CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard

 

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

×