Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End How to convert something to a regular expression for Autoblog search and replace.

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #45676
    Crssp
    Participant

    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:

    <![ CDATA[< ! --Head-->Jim Bob Blueshead]]>

    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

    #139599
    Crssp
    Participant

    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.

    #140300
    Crssp
    Participant

    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)
  • The forum ‘Back End’ is closed to new topics and replies.