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 A

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 - joi

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
sday, March 05, 2009 1:58 PM To: Flash Coders List Subject: Re: [Flashcoders] RegExp headache 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 wrote: >>>/(((<|>)=?)|==)?(-?\d+)/ >

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 wrote: >>>/(((<|>)=?)|==)?(-?\d+)/ >>>hot darn. > > A side note.  I'm so in awe at the people who understand and can write > Regular Expressions on a whim - I

RE: [Flashcoders] RegExp headache

2009-03-05 Thread Merrill, Jason
>>/(((<|>)=?)|==)?(-?\d+)/ >>hot darn. A side note. I'm so in awe at the people who understand and can write Regular Expressions on a whim - I have hacked a few from some examples for projects, but it's nothing I really understand too much, a skill I need to learn - they are so handy. Jason

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 wrote: > How's this? > > /(((<|>)=?)|==)(-?\d+)/ > > Then the comparison operator is in result[1] and the number is in > result[4].

Re: [Flashcoders] RegExp headache

2009-03-05 Thread David Hershberger
How's this? /(((<|>)=?)|==)(-?\d+)/ Then the comparison operator is in result[1] and the number is in result[4]. You said "integer", so I threw in the optional negative sign. :) Dave On Thu, Mar 5, 2009 at 10:02 AM, Glen Pike wrote: > Hi, > > How about: > > /([=><]+)([0-9]+)/ > > Check

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