From: C E Macfarlane
Sent: Sunday, August 13, 2017 20:54
...
[bpw][0-9][a-z0-9]{7,13}
... would probably do the job.
The BBC version James Scholes gave seems to be much wider. Does {8,} mean
at least 8 with no upper limit?
___
get_iplayer
Correction below:
--
www.macfh.co.uk/MacFH.html
> Yes, but in practice you'd want an upper limit, because the
> higher the limit
> the more likely you are to get spurious hits.
Thinking about this a bit more, I wouldn't wish to claim a spurious hit was
more likely with no upper
See interleaved reply below ...
--
www.macfh.co.uk/MacFH.html
> >...
> >[bpw][0-9][a-z0-9]{7,13}
> >... would probably do the job.
> >
> The BBC version James Scholes gave seems to be much wider.
> Does {8,} mean
> at least 8 with no upper limit?
Yes, but in practice
Hi Vangelis,
> On Sun Aug 13 19:51:22 BST 2017, James Scholes wrote:
> > ^[0-9b-df-hj-np-tv-z]{8,}$
Very useful, though I'm surprised they dropped the vowels but left in
`y'. Having an alleged PID and checking it's syntactically correct,
i.e. matches the regexp, is distinct from hunting for a
> > But there is a potential problem with [a-z0-9]
> > because it would pick out many normal English words,
> > for example, ironically, 'programmes' and 'programming'.
>
> Again, forgive me for being obtuse, still learning things,
> but isn't that scenario assuming one actually inputs
>
>
From: Vangelis forthnet Sent: Monday, August 14, 2017 03:45
The Al Gore one is now p05c2b9j
(snip) The changes may be temporary.
... Yes and no... If you browse to:
http://www.bbc.co.uk/programmes/p016tl04/episodes/player
you'll see there exist two distinct entries for "Former US Vice
Hi M,
> I'm horrified by the code repetition. Doesn't Perl allow 'functions'?
Yes, that's those
sub foo {
...
}
you see.
It can also hold a regexp in a variable so a `$pid_regexp' could be
defined once and used repeatedly.
$ perl -e '
> $re =
More about regular expressions and programming follows, which those with no or
little interest in either can safely ignore ...
--
www.macfh.co.uk/MacFH.html
> > I think what Charles was meaning is that if you were using
> --url "http://www.bbc.co.uk/programmes/b08xy0gl; rather than
>
8 matches
Mail list logo