1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Post content replace

Discussion in 'XenForo Questions and Support' started by ibaker, Mar 12, 2013.

  1. ibaker

    ibaker Well-Known Member

    I have many posts that contain img links to old smilies that I want to clean up by simply making them actual smilies again so I am trying to replace the img links to smilie bbcode using Kier's Find and Replace Mod:
    http://xenforo.com/community/threads/post-content-find-replace.6548/

    So each smilie is contained in the img link like:
    Code:
    [IMG]http://www.recreationalflying.com/styles/old_smilies/ace.gif[/IMG]
    which I need to convert to say:
    Code:
    :ace:
    But I can't get the parameters right for the Regular Expression:
    1.jpg

    Can anyone advise...thanks
     
  2. cclaerhout

    cclaerhout Well-Known Member

    Use this as regex:
    Code:
    #\[IMG\]http://www\.recreationalflying\.com/styles/old_smilies/ace\.gif\[/IMG\]#i
     
    Jake Bunce and ibaker like this.
  3. ibaker

    ibaker Well-Known Member

    Thanks Cedric, will try that out
     

Share This Page