[PLUGIN WP-O-MATIC] How can I use regex with wp-o-matic
-
Great great plugin. It works fine but I’ve a question.
I use a custom template like this:<h2>{title}</h2><br> {content}<br><br> <h4><a href="{permalink}">READ HERE</a></h4> <h1>{campaigntitle}</h1>
Permalink tag give me a link like this:
https://www.domainsite.com/deals/offer/object/7614342?CID=IT_RSS_217_389_189_22&utm_source=rss_217&utm_medium=rss_389&utm_campaign=rss_189&utm_content=rss_22
while I need a link like this:
https://www.domainsite.com/deals/offer/object/7614342/.NOAtRf
(.NOAtRf it’s my referer link and it’s costant)Now I’ve tried to use regex tools but I’m not sure to use it in the right way. If I understand correctly insert this regular expression in the “ORIGIN”:
/([a-z0-9_\-]{1,5}:\/\/)?(([a-z0-9_\-]{1,}):([a-z0-9_\-]{1,})\@)?((www\.)|([a-z0-9_\-]{1,}\.)+)?([a-z0-9_\-]{3,})(\.[a-z]{2,4})(\/([a-z0-9_\-]{1,}\/)+)?([a-z0-9_\-]{1,})?(\.[a-z]{2,})?(\?)?(((\&)?[a-z0-9_\-]{1,}(\=[a-z0-9_\-]{1,})?)+)?/gi
flag Regex option and put this line to Rewrite to:
$1$5$8$9$10$12/.NOAtRf.
When I try to submit the mod I receive this message:
There’s an error with the supplied RegEx expression
I can not understand where mistake. Thx
- The topic ‘[PLUGIN WP-O-MATIC] How can I use regex with wp-o-matic’ is closed to new replies.