[HRPM] quick question
Troy E. Webster
twebster at pcs.cnu.edu
Mon Nov 13 16:17:59 CST 2000
Hey all
I need some regular expression help again.
I'm trying to match something that should (I thought) be pretty easy.
It's actually versioning info that I want to get rid of. For example, the
line could look like:
1.1.1.2
<or>
1.1.1
<or>
.1.1.1.1.1.1.1.1.2
<etc>
so I tried $_ =~ /(\.*)((\d)(\.)(\d))+/
... and a huge number of other permutations with the parenthesis.
And I don't want to match money i decimal form ($1.25).
Any help would be appreciated.
Troy
___________________________________________________________________________
``Beware of bugs in the above code; I have only proved it correct, not
tried it.'' -Don Knuth
---------------------------------------------------------------------------
More information about the Norfolk-pm
mailing list