"\0" useable? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=60) +--- Thread: "\0" useable? (/showthread.php?tid=75301) |
"\0" useable? - Nicezia - 2010-06-08 @ spiff or vdrfan Is it possible to use \0 for the entire capture while using \1-\9 as the group captures? Say I wanted to create a filenamescrape and the Filename was "Final Contact 3" for instance, and i wanted to set the "set" for sequel movie... Could i do something like Code: <RegExp input="$$1" output="<title>\0</title><set>\1</set>" dest="5"> reason i ask exactley, is because when getting results, from a webpage, one is almost always limited to using 1 RegExp to capture the entirety of the entities on the page, which limits the number of info you can pull for each item to 9, i have run into an instance where i (and this is mainly for personal use at the moment) am wanting to pull 9 captures and the save the entire capture group itself too. I was just wondering about the possibility of using the \0 rather than nesting more regular expressions. or do you use \0 for something in your regular expression engine? - spiff - 2010-06-09 uhm, it's defined in regexps as \& no? why introduce a nonstandard beast? - Nicezia - 2010-06-09 well i couldn't find the definition used so i supposed it didn't exist, thanks for straightening that out for me - UsagiYojimbo - 2010-06-21 Nicezia Wrote:Is it possible to use \0 for the entire capture while using \1-\9 as the group captures? Say I wanted to create a filenamescrape and the Filename was "Final Contact 3" for instance, and i wanted to set the "set" for sequel movie... Try this instead: Code: <RegExp input="$$1" output="<title>\1</title><set>\2</set>" dest="5"> Edit: Oops, I did not read the end of your post... However, one could nest RegExp tags, so I do not get this one RegExp thing... |