You are here

Escaping the forward slash

2 posts / 0 new
Last post
dazed
Offline
Joined: 8 years
Last seen: 5 years
Escaping the forward slash

In the uk-sky.com.ini you have

category.scrub {regex||<span class="bubble-programme-genres">(.+?)</span>||}
category.modify {replace|,|\|}

Which gives the below from Entertainment, Action. Replacing the comma with a back slash to split the genres

<category lang="en">Entertainment</category>

<category lang="en">Action</category>

 

I want to replace the comma with a forward slash to give me Entertainment / Action, but escaping the forward slash or even just leaving as is doesnt work. In all cases i get left with <category lang="en">EntertainmentAction</category>

tried

category.modify {replace|, |/|}

category.modify {replace|, | / |}

category.modify {replace|, | \/ |}

dazed
Offline
Joined: 8 years
Last seen: 5 years

Thank you, i'm an idiot i didn't remove the | before trying for myself  blush

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl