Hi M,
> > ^(?:[bp]0|w3)[a-z0-9]{6}$
>
> Thanks for coding help but, the problem is worse (for me...), PID
> w172vg029mkl852 Business Matters - Former US Vice President Al Gore on
> Climate Change (w172vg029mkl852)
More samples would allow the regexp to reject invalid ones, but perhaps
On 13/08/2017 17:44, M Clark wrote:
Thanks for coding help but, the problem is worse (for me...),
PID w172vg029mkl852
Business Matters - Former US Vice President Al Gore on Climate Change
(w172vg029mkl852)
So not even 8 characters. Other World Service Series (?) have similar PIDs
now, e.g.
From: Ralph Corderoy
Sent: Sunday, August 13, 2017 17:54
Thanks for coding help but, the problem is worse (for me...), PID
w172vg029mkl852 Business Matters - Former US Vice President Al Gore
Climate Change (w172vg029mkl852)
The Al Gore one is now p05c2b9j
The podcast is p05c2b9b
The
The definitive source for a correct PID regexp is probably the BBC
themselves, and it just so happens that they provide one:
https://github.com/bbc/programmes-pages-service/blob/master/src/Domain/ValueObject/Pid.php#l14
^[0-9b-df-hj-np-tv-z]{8,}$
HTH.
--
James Scholes
On Sun Aug 13 10:05:39 BST 2017, Ralph Corderoy wrote:
^(?:[bp]0|w3)[a-z0-9]{6}$
Cheers Ralph, your coding skills are always welcome in this list! :-)
I was about to say that the above assumes that ordinary PIDs
will continue to begin with "(b|p)0" and that "new" WSR ones
will always begin
On Sun Aug 13 18:28:42 BST 2017, RS wrote:
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 President Al Gore
See reply ...
--
www.macfh.co.uk/MacFH.html
> Would I be right in saying that amending Vangelis' suggestion to:
> [bpw][a-z0-9]{14}
> would pick up 15 character PIDs as well as anything shorter?
Firstly it would have to be ... {8,14}, otherwise shorter ones
Thanks for coding help but, the problem is worse (for me...),
PID w172vg029mkl852
Business Matters - Former US Vice President Al Gore on Climate Change
(w172vg029mkl852)
So not even 8 characters. Other World Service Series (?) have similar PIDs
now, e.g. Weekend, World Update.
And I thought I
Hi Vangelis,
> ...to begin with either "b0" or "p0".
>
> New radio PIDs like "w3csv1y9" or "w3csvnyc", beginning with "w3",
...
> [bp]0[a-z0-9]{6}
> with
> [bpw][a-z0-9]{7}
Other approaches, getting gradually more specific.
^[bpw][03][a-z0-9]{6}$
But this allows b3.
9 matches
Mail list logo