Clueless about regex
What I want to do is match strings with regular expressions.
Now I can't even write code for matching a variable length sentence or phrase in curly brackets for example:
{A quick brown FOX jumps over a sprightly hare}
Hmm... this does not work
(\{)[.*?](\})
This doesn't work
(\\{).*?(\\})
This doesn't work either.
\\{.*?\\}
ARRRGH.
It's funny how it's called regular.
References
1.
2.
3.
4.
^ : start of string [ : beginning of character group a-z : any lowercase letter A-Z : any uppercase letter 0-9 : any digit _ : underscore ] : end of character group * : zero or more of the given characters $ : end of string
Now I can't even write code for matching a variable length sentence or phrase in curly brackets for example:
{A quick brown FOX jumps over a sprightly hare}
Hmm... this does not work
(\{)[.*?](\})
This doesn't work
(\\{).*?(\\})
This doesn't work either.
\\{.*?\\}
ARRRGH.
It's funny how it's called regular.
References
1.

2.

3.

4.

Array
(
[0] => {A quick brown FOX jumps over a sprightly hare}
[1] => A quick brown FOX jumps over a sprightly hare
)