I would like to have a feature for Regexes in expressions.
Like this:
<?IF expr="variable =~ /^blah(blubb)?/" ?>
<?/IF?>
or with like as equvalent for =~
<?IF expr="variable like /^blah(blubb)?/" ?>
<?/IF?>
The same with negated Regex match:
<?IF expr="variable unlike /^blah(blubb)?/" ?>
<?/IF?>
<?IF expr="variable !~ /^blah(blubb)?/" ?>
<?/IF?>
An other related nice feature would be getting the matched Regex subpatterns like this:
<?IF expr="variable =~ /^blah(blubb)?/" ?>
Match of pattern 1 is: <?= variable.1 ?>
<?/IF?>
or that:
<?IF expr="variable =~ /^blah(blubb)?/" ?>
Match of pattern 1 is: <?= variable.~1~ ?>
<?/IF?>
Or anything other syntax for the subpattern.
Depends on your idea of implementation.
//EDIT: My wish was inspired syntax of Blosxom's interpolate_fancy
Thanks a lot for the module! Mostly used in webdevelopment by me.
The module should get a golden Camel Award. ;)
I would like to have a feature for Regexes in expressions.
Like this:
or with like as equvalent for =~
The same with negated Regex match:
An other related nice feature would be getting the matched Regex subpatterns like this:
or that:
Or anything other syntax for the subpattern.
Depends on your idea of implementation.
//EDIT: My wish was inspired syntax of Blosxom's interpolate_fancy
Thanks a lot for the module! Mostly used in webdevelopment by me.
The module should get a golden Camel Award. ;)