in reply to Re: old Perl regex problem
in thread old Perl regex problem
     It works on 5.6.1. Someone tested it for me.
     Using the info that I put in the original post, PH-000 should not be ok. I didn't really think about that too much because I know the format of the actual files that I'm going through, but my original regex would probably be better represented with ".+" after the "PH" instead of ".*?".
Here's an actual file name: PH0022080209401500001PE-000
     BrowserUk's version would work great, but I'm reading the pattern from a configuration file and I can't change anything outside of the slashes.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: old Perl regex problem
by Abigail-II (Bishop) on Aug 02, 2002 at 14:20 UTC |