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

Regex spell check help

Discussion in 'XenForo Questions and Support' started by audiokid, Jun 16, 2016.

Tags:
  1. audiokid

    audiokid Active Member

    I am trying to correct the spelling of the word "suming" and replace it to "summing".

    I get assuming in the search. How do I isolate suming? Avoid replacing the word assuming ? Thanks.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    What regex tool are you using?

    Example:

    Code:
    #([^a-zA-Z]{1})suming([^a-zA-Z]{1})#siU
    
    That will match "suming" surrounded by one non-alpha character on each end.
     
  3. audiokid

    audiokid Active Member

    Jake, thank you! I am using the one we all use for Xenforo.
     
  4. audiokid

    audiokid Active Member

  5. Brogan

    Brogan XenForo Moderator Staff Member

    Both versions of the URL work for me - the index.php is being stripped automatically due to the friendly URLs function.
     
  6. audiokid

    audiokid Active Member

  7. audiokid

    audiokid Active Member

    Thanks Brogan,
    I thought that too but it then stopped working. So I discovered all these broken links and was trying to fix it. After playing with the Route Filter, its started working again. Weird.
     
  8. audiokid

    audiokid Active Member

    I used an add-on recklessly and need to remove the DLM to start over. How do I strip out the DLM like in these examples? Thank you.
    Code:
    [DLMURL]http://recording.org/media/categories/kraznet-samplitude.20/[/DLMURL]
    [DLMURL]http://www.soundprofessionals.com/cgi-bin/gold/category.cgi?item=MS-LAV-1[/DLMURL]
    [DLMURL="http://www.soundonsound.com/sos/may13/articles/samplitude-0513.htm"]here[/DLMURL]
     
  9. audiokid

    audiokid Active Member

    I made the mistake of removing my internal links.
    Using Replace in Post Regex add-on:
    How would I only remove the DLM from a specific domain?

    Example:

    Code:
    [DLMURL]http://recording.org/media/categories/kraznet-samplitude.20/[/DLMURL]
    [DLMURL]http://recording.org/forums/fix-this-mix.20/[/DLMURL]
    [DLMURL]http://recording.org/threads/firepod-fp10-question-ahh.38339/page-2#post-440356[/DLMURL]
     
    Last edited: Nov 30, 2016
  10. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Quick Find: [DLMURL]http://recording.org

    Regular expression: #\[DLMURL\]([^\[]+)\[/DLMURL\]#siU

    Replacement String: [URL]\1[/URL]

    I think that's what you want.
     
    audiokid likes this.
  11. audiokid

    audiokid Active Member

    thank you, Jake
     

Share This Page