Reputation: 991
Regex pattern: /{if\s+(isRegion|isCountry)([a-z]+?)}/i
Expected matches:
{if isRegionAsia}
{if isRegionEurope}
{if isCountryChina}
Working example here: http://regex101.com/r/gL4qN9/2
Why, then, in PHP, does preg_match_all() return an array with 3 empty results instead of the matches? What am I missing here? Thanks in advance for any help!
Upvotes: 0
Views: 479