I would like some help on a regExp
I have a string and want to split it into the first character being a
<|>|<=|>=|== the second part being an int.
so ">100"
would return
result[1] = '>'
result[2] = 100
so "100"
would return
result[1] = 'undefined'
result[2] = 100
Here is what I have so far, but it is killing me.
var pattern:RegExp = /^(\d)?(^\d+)|(<?????>)/
var result:Object = pattern.exec(tConditionalString);
I tried another approach but i am still figuring out how to do it. It
goes something like this
var pattern:RegExp = /^(>):((?(2)then|else))
Jiri
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders