Re: New radio PIDs, more than 8 characters

2017-08-13 Thread Ralph Corderoy
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

Re: Fw: Re: New radio PIDs, more than 8 characters

2017-08-13 Thread Alan Milewczyk
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.

Re: New radio PIDs, more than 8 characters

2017-08-13 Thread RS
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

Re: New radio PIDs

2017-08-13 Thread James Scholes
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

Re: New radio PIDs

2017-08-13 Thread Vangelis forthnet
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

Re: New radio PIDs, more than 8 characters

2017-08-13 Thread Vangelis forthnet
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

RE: Fw: Re: New radio PIDs, more than 8 characters

2017-08-13 Thread C E Macfarlane
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

Fw: Re: New radio PIDs, more than 8 characters

2017-08-13 Thread M Clark
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

Re: New radio PIDs

2017-08-13 Thread Ralph Corderoy
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.