in reply to Regular expression
Matches a string that starts with one or more digits, followed by an "h", "m" or "D" (case sensitive), and then ends.
The (?: ... ) structure in this case doesn't do anything. It might as well have been written:
qr/^\d+[hmD]$/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regular expression
by akagrawal3 (Beadle) on Mar 04, 2012 at 08:40 UTC |