Re: [Flashcoders] RegExp headache

2009-03-06 Thread Jiri
Everybody thank you! Jiri Merrill, Jason wrote: Seriously, just play with RegExr / Regex Buddy, get the cheat sheets: Am now - love it! Can't I still be in awe? :) Jason Merrill Bank of America | Learning Performance Solutions Instructional Technology Media Learn about the

[Flashcoders] RegExp headache

2009-03-05 Thread Jiri
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

Re: [Flashcoders] RegExp headache

2009-03-05 Thread Glen Pike
Hi, How about: /([=]+)([0-9]+)/ Check out RegExr by Grant Skinner - it's lovely. The problem with = and = is that there is look behind in the regex controlled by these chars so the order of = seems to be important??? Glen Jiri wrote: I would like some help on a regExp I

Re: [Flashcoders] RegExp headache

2009-03-05 Thread David Hershberger
oops, forgot about the comparison operator being optional. New version: /(((|)=?)|==)?(-?\d+)/ hot darn. Dave On Thu, Mar 5, 2009 at 10:44 AM, David Hershberger he...@zipzapplay.comwrote: How's this? /(((|)=?)|==)(-?\d+)/ Then the comparison operator is in result[1] and the number is in

Re: [Flashcoders] RegExp headache

2009-03-05 Thread Ian Thomas
Like Glen said, check out Grant's RegExr - it really helps this kind of thing out. :-) Ian On Thu, Mar 5, 2009 at 6:51 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: /(((|)=?)|==)?(-?\d+)/ hot darn. A side note.  I'm so in awe at the people who understand and can write Regular

Re: [Flashcoders] RegExp headache

2009-03-05 Thread Glen Pike
Seriously, just play with RegExr / Regex Buddy, get the cheat sheets: http://www.regexbuddy.com/ http://gskinner.com/RegExr/ http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/ Then spend some time dealing with Apache Mod Rewrite which will stretch your regex muscles...

RE: [Flashcoders] RegExp headache

2009-03-05 Thread Merrill, Jason
Seriously, just play with RegExr / Regex Buddy, get the cheat sheets: Am now - love it! Can't I still be in awe? :) Jason Merrill Bank of America | Learning Performance Solutions Instructional Technology Media Learn about the Adobe Flash platform for rich media experiences - join