Understanding the potential of Regex
I have been doing a lot of reading on Regex, recently, to try and unlock the potential of having TVH only record exactly what I want.
Using Top Gear as an example, I thing I have got the basics down as follows:
"^Top Gear.*S21" means record any episode of Top Gear from Season 21
How could I adapt this to catch the following scenarios:
1. Record all episodes from season 21 and onwards
2. Record episode 3 from season 20 and episode 4 from season 21
3. Record all episodes from season 21, except for episode 2
Hopefully, if I can see enough examples, I can start to get the hang of this and will start creating my own codes for any example
RE: Understanding the potential of Regex - Added by A L 14 days ago
I have had a go with the first one (Record all episodes from season 21 and onwards). Is the following correct?
RE: Understanding the potential of Regex - Added by Em Smith 14 days ago
If you use 4.3 (dev) then it has a drop-down on the autorec for minimum/maximum season to record (#5176). Avoiding to record a specific episode seems a bit edge-case so is not supported In the dialog.
You can test regular expressions on the EPG. Or "echo my text | egrep my_regex" will work for most that you will use. If it matches then it will print the text, otherwise it will nothing.