Regex in Command
-
So here’s the problem. There’s an eshop that’s using qtranslate and all product descriptions are exported in the following form:
[:en]Blahblah 1[:el]Blahblah 2[:]
I’m trying to remove everything in between (and including) the[:en]
and[:el]
tags and then remove the remaining[:]
tag so that only Blahblah 2 is exported
The regex for these two are:
/\[:en\].*?\[:el\]
and/\[:\]
I’ve tried preg replace and nothing seems to work. What are the valid commands to replace these two instances with null?
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Regex in Command’ is closed to new replies.