Re: regex question



Paul wrote:
You could try matching anything that's not a -, + or number in your
first
group, e.g.

([^-+0-9]*)

Note that I'm assuming Ruby uses Perl Compatible Regular Expressions

Cheers,

Paul

But then a message like:
"I'm 3 years old and have 80 points"
wouldn't come out right, correct?

--
Posted via http://www.ruby-forum.com/.

.



Relevant Pages

  • Re: RegEx Help Needed
    ... "Perl Compatible Regular Expressions" library. ... I often use its diagnostic command, "pcretest", to explore the ... behaviour of some complex regex that I'm working with, ...
    (comp.lang.perl.misc)
  • Re: Regex in C
    ... Brook Keele wrote: ... So you may want to look at PCRE - Perl Compatible Regular Expressions ...
    (comp.os.linux.development.apps)
  • Re: regular expression help using regex.h in c program
    ... In addition to the other replies: you could always download and use PCRE. ... Stands for Perl Compatible Regular Expressions, BSD-like license. ...
    (comp.unix.programmer)
  • Re: [SLE] Postfix - Sandy - 1 more Q re: /etc/postfix/recepient_check
    ... that should have been Perl Compatible Regular Expressions of ... http://www.spamchek.com/ - managed anti-spam and anti-virus solution. ...
    (SuSE)