Grow your CSS skills. Land your dream job.

How to convert something to a regular expression for Autoblog search and replace.

  • # June 19, 2013 at 6:04 pm

    I need to have the Autoblogged search and replace remove tags of a sort from my headlines.

    What’s in the feed title looks something like this:

    What appears then in the page is:
    < ! --Head-->Jim Bob Blueshead

    I need to remove the head brackets sort of thing, the search replace of the Autoblog commercial plugin appears to want regular expressions for it’s search parameters, I think is why it’s not working to just enter

    Any suggestions, is there an online text to regular expressions converter somewhere or is that too easy/not possible. I have extra space in the head comment, so it doesn’t parse as just a comment here in the forums.
    thanks,
    Crssp

    # June 20, 2013 at 9:26 am

    Back on the case this morning to use Regex search to find comments in the code, I found this:
    http://ostermiller.org/findhtmlcomment.html and another for future reference -
    http://ostermiller.org/findcomment.html
    I just leave the replace empty, pretty much what I figured on that one.
    Here’s the autoblogged Search and Replace page help:
    http://community.autoblogged.com/entries/344640-Common-Search-and-Replace-Patterns
    I’m sure it might click for me, I know precious little about Regex, as of now.
    Thanks for any suggestions again.

    # June 25, 2013 at 12:17 pm

    Hey all, I cracked this one, Autoblogged has a Search/Replace feature that searches for Regular Expressions or Plain Text.
    It worked to search for the plain text that WordPress was converting the comment code into, so the search that worked for me was:
    &lt ;!–Head–&gt ;

    I’ve added spaces before the semi-colons here so it would appear in the forum :)
    And leaving the replace field empty, to replace with nothing :)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".