in reply to Re^6: about style: use possessive or atomic?
in thread about style: use possessive or atomic?
For example: $units_1 = "A|B3"; $units_2 = "C|D-3"; Then regex should match:/^ (?: ' \s* )? ($positive_number){1}+ \s* (?: \( \s* ($stdev) \s* \) )? \s* ($units_1)? ( \s* ($positive_number) \s* (?: \( \s* ($stdev) \s* \) )? \s* ($units_2) )? (?: \s* ' )? $/x
but it shouldn't match 20C.20B3 20 B3 15 D-3 20A15C
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: about style: use possessive or atomic?
by LanX (Saint) on Aug 17, 2015 at 19:28 UTC |