WordPress.org

Ready to get started?Download WordPress

Forums

WP-o-Matic
[PLUGIN WP-O-MATIC] How can I use regex with wp-o-matic (1 post)

  1. urbelab
    Member
    Posted 1 year ago #

    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:

    http://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:

    http://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

    http://wordpress.org/extend/plugins/wp-o-matic/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic