Surge-ee / SurgerEE

A collection of simple tags for expressionengine that make template development easier.
Mozilla Public License 2.0
37 stars 8 forks source link

Regex code bug #18

Closed gregwhitworth closed 11 years ago

gregwhitworth commented 11 years ago

I love your module, thanks for it. I wanted to use your regex tag and it kept not working and I found that the problem in EE 2.6 was the following line I was using to write my code:

{if `{exp:surgeree:match string="foo" regex="^[f]"}' == 'y'}

It should be

{if '{exp:surgeree:match string="foo" regex="^[f]"}' == 'y'}

Thanks again. And by the way I got this snippet from your string wiki page.

motionharvest commented 11 years ago

For those without a keen eye, there is a tilde ` after the "if" which should be a single quote '

motionharvest commented 11 years ago

a shift tilde, w/e that thing's called :X

EpocSquadron commented 11 years ago

Fixed. Thanks for letting us know.