I am looking for a regex that will find a match ...
- The start of the match is
:!
- The middle can contain anything BUT another
:!
string - The end of the match is
!:
Example 1:
Chicken :!fnDeepFry(Funky:Cheese)!: Wings
- Expected Match:
:!fnDeepFry(Funky:Cheese)!:
- Expected Match:
Example 2:
Chicken :!fnDeepFry(:!fnSpecial({{recIngred}})!:)!: Wings
- Expected Match:
:!fnSpecial({{recIngred}})!:
- Expected Match:
Here is my attempt ... /:!([^:!]+)!:/gm
I can't get the match box [^:!]
to recongize :!
as a string, and not individual characters.