Normal
This should work, but you don't need to replace "Episode " with an empty string, you can just remove it, as in:[code]<Modify channel="*" field="#EPISODE" search="Episode\s" action="Remove"></Modify>[/code]You could easily get the same result using the following:[code]<Search match="(?<=Episode\s)[0-9]{1,3}" field="#EPISODE" remove="false" /><Search match="Episode\s[0-9]{1,3}" remove="true" />[/code]The first search will find the episode number and store only the number in #EPISODE (note the use of the "positive lookbehind grouping construct"). The second search just removes the entire "Episode nnn" string, so it does not appear in other fields. If you use only the search with remove="true", it would only remove the episode number but not the string "Episode ".In general the order of operations for each match of the template:all searches are appliedfield values are extracted based on the templatesublinks are scanned and field values are extracted"modify" actions are applied on the extracted fieldsafter all data for a channel has been processed it is stored to the database or saved to tvguide.xml
This should work, but you don't need to replace "Episode " with an empty string, you can just remove it, as in:
[code]<Modify channel="*" field="#EPISODE" search="Episode\s" action="Remove"></Modify>[/code]You could easily get the same result using the following:
[code]<Search match="(?<=Episode\s)[0-9]{1,3}" field="#EPISODE" remove="false" />
<Search match="Episode\s[0-9]{1,3}" remove="true" />[/code]The first search will find the episode number and store only the number in #EPISODE (note the use of the "positive lookbehind grouping construct"). The second search just removes the entire "Episode nnn" string, so it does not appear in other fields. If you use only the search with remove="true", it would only remove the episode number but not the string "Episode ".
In general the order of operations for each match of the template: