I want to have the system record all programs with names that start with "Dick Francis" (or "Paul Temple", etc...), and know I can edit entries in "PVR list", but can't recall enough of regexp to figure out how to make that happen. What do I need?
I think I can get all series of entries that have series number by replacing the digit with "\d" (but it's not happened yet. Is that correct?
tnx, doug
This one of those of those
"teach a man to fish" situations. If you're going to employ regular expressions you should avail yourself of one of the many, many regex tutorials on the internet to teach yourself the basics. Anchoring a match to the beginning of a string will almost certainly be one of the concepts covered in every tutorial. I'll start you off with a hint: In the Web PVR, click on the underlined series name of one of the "Dick Francis - Straight" episodes and look at what appears in the "Search" field:
Code:
^Dick Francis - Straight$
. That pattern ensures an exact match for that series name, with no extra characters at the beginning or end.
More generally, do you really need regular expressions here? A search in the
Name field using just "Dick Francis" (or "Paul Temple") seems unlikely to turn up false positives.
Yes, except that ^Dick Francis$ doesn't pick up "Dick Francis - Straight" whereas ^Dick Francis - Straight$ does.
Right, but
will pick up "Dick Francis - Straight".
DP was giving you a hint, not the answer. I know nothing of regex and simply read
this page which told me using the caret anchors the search to the start of the target string.
The $ anchors the search to the end of the target string. Using both therefore means 'match the whole string' whereas using just the caret means 'make sure this term is at the start of the target string'.
At least, that's what my 2 minute reading suggests.