You are here

Clear characters from desc

2 posts / 0 new
Last post
martos
Offline
Donator
Joined: 11 years
Last seen: 6 days
Clear characters from desc

Hello,

I am trying to remove all occurrences of

"“”„

and to remove

space – - : . ,

  if the description starts with some of them. I tried this:

index_description.modify {remove|"}
index_description.modify {remove|“}
index_description.modify {remove|”}
index_description.modify {remove|„}
index_description.modify {remove(type=regex)|^ )}
index_description.modify {remove(type=regex)|^-}
index_description.modify {remove(type=regex)|^–}
index_description.modify {remove(type=regex)|^:}
index_description.modify {remove(type=regex)|^,}
index_description.modify {remove(type=regex)|^.}

But the result is not satisfying. I am sure there is a one-liner resolving it. Please help :)

martos
Offline
Donator
Joined: 11 years
Last seen: 6 days

I did not escape special characters. Thank you for the help :)

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