On Wed, 23 Mar 2016 10:45:48 +0000 MJ Ray mjr@phonecoop.coop wrote:
Chris Walker wrote:
On Radio 4 is a new series by Hal Cruttenden called simply Hal. But if I say get_iplayer --type=radio "Hal" I end up with several Asian programmes along with Hancock's Half Hour and so on. Also listed though is Hal - Career, BBC Radio 4 so my question is, how can I differentiate between those unwanted programmes and the one sole programme I do want?
get_iplayer takes a REGEX, so you can add the symbols to match start and end of string and say: get_iplayer --type=radio '^Hal$'
Hope that helps,
I had managed, eventually to arrive at a similar solution.
My attempts at making it work were foiled by my own ineptitude! It was only when one of my sons pointed out my error that it began to work.
In my code I had put "'\bHal\b'" as all my other names had double quotes round them and when cutting and pasting from a web page, I had included their single quotes as well. When I removed those, it all worked.
Thanks for responding.