I have strings like : {$foo.bar} and {$foo.bar.anything}
WHERE : foo AND bar AND anything === alphanumeric
i want to match the above 2 strings in PHP via preg_match(regular expression) except those without any dot for example : {$foo}
Your help will be much appreciated, thanks.
matches
does not match
Adopted Joe’s PCRE case-insensitive modifier to shorten it a bit.
Special thanks to sln for keeping me on my toes until it’s perfect. 🙂