On Sat, 2 Jan 2016, Bill Cole wrote:
On 2 Jan 2016, at 9:11, RW wrote:
1. \d{1,2}+ doesn't make any sense, you need either {1,2} or +
It's a bit esoteric, but here's what the perlre man page says:
{n,m}+ Match at least n but not more than m times and give nothing
back
Put another way: possessive but not greedy. In some REs it is useful to
prevent backtracking. In this one there's no chance of that, but its
harmless.
That syntax may introduce dependencies on which version of perl is
installed.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhar...@impsec.org FALaholic #11174 pgpk -a jhar...@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
If guards and searches and metal detectors can't keep a gun out of
a maximum-security solitary confinement prisoner's cell, how will
a disciplinary policy and some signs keep guns out of a university?
-----------------------------------------------------------------------
12 days since the first successful real return to launch site (SpaceX)