Regex Question to Grab Keys
- by Braveyard
Hello,
I have this kinda template text :
Hello {#Name#},
Thanks for coming blah on {#Date#} and
we love to see you again here with
{#President#}
So I am trying to get {#...#} templates parts and put them into an array.
But my expression didn't work :
\b(?<=\{\#)(.*)(?=\#\})\b
The result became something like this for this sample text :
{#Something#} Hello {#Brand#}
Result :
Something#} Hello {#Brand