in reply to Re: regular expressions. help in thread regular expressions. help
Well, what I'm doing is taking the value of the data in the fourth field (in this example, it is gpa, but it could be a whole host of random letters strung together) and putting it into a variable. But, that isn't the problem I'm having right now -- the problem is getting the blasted thing to match and acknowledge that there is anything there.
Re^3: regular expressions. help
by Fletch (Bishop) on Jun 29, 2004 at 19:42 UTC
|
When trying to construct an re to match something, perl -de 0 can be very helpful. Set $_ to your sample data and then you can iteratively construct your re with x /blah/ (seeing if it matches and what matches at each step).
| [reply] [d/l] [select] |
|