Replace _ with whitespace

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
flobbes Offline
Senior Member
Posts: 131
Joined: Mar 2009
Reputation: 0
Post: #1
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.
(This post was last modified: 2009-08-26 22:38 by flobbes.)
find quote
redtapemedia Offline
UMM Project
Posts: 551
Joined: Mar 2009
Post: #2
flobbes Wrote: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.

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"
find quote