Regex help

Discussion in 'JavaScript' started by KewL, Oct 3, 2018.

  1. #1
    Hey guys, having trouble making a regex. Basically I'm trying to replace
    {{ page.content }}
    Code (markup):
    inside a string, but I need it so white space doesn't matter.

    {{page.content}}
    Code (markup):
    {{ page.content}}
    Code (markup):
    {{page.content }}
    Code (markup):
    {{                   page.content }}
    Code (markup):
    You get the idea, how would I go about doing this?
     
    Solved! View solution.
    KewL, Oct 3, 2018 IP
  2. #2
    hdewantara, Oct 3, 2018 IP
  3. KewL

    KewL Well-Known Member

    Messages:
    245
    Likes Received:
    16
    Best Answers:
    3
    Trophy Points:
    128
    #3
    Works perfect. Thanks for the quick reply and help!
     
    KewL, Oct 3, 2018 IP
  4. hdewantara

    hdewantara Well-Known Member

    Messages:
    538
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    #4
    You're welcome :)
    Am pleased to know it works...
     
    hdewantara, Oct 3, 2018 IP