Replace _ with whitespace - 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: Replace _ with whitespace (/showthread.php?tid=56962) |
Replace _ with whitespace - flobbes - 2009-08-26 One of my GetSearchResults delivers me the movie in "this_is_the_movie_i_was_looking_for" format. Its working but not looking so good. How can I replace some with whitespaces? Quite a nub question, but I really couldn't figure it out. - seedzero - 2009-08-27 flobbes Wrote:One of my GetSearchResults delivers me the movie in "this_is_the_movie_i_was_looking_for" format. Do a regex on the "this_is_the_movie_i_was_looking_for", search "_+" and replace with " (\1)". It's something along those lines but I'm unable to check it at work. See thetvdb scraper, the createsearchurl replaces spaces with "%20" |