[SR-Users] regular expression question

Daniel Tryba d.tryba at pocos.nl
Wed Dec 14 10:09:49 CET 2016


On Tue, Dec 13, 2016 at 03:25:12PM -0500, Satish Patel wrote:
> It works! but it doesn't work when i tried to use with wildcard (*) like
> 
> if(!($ua =~ "*Foo")){

This is not a valid regular expression. A regexp wildcard is any
character (.) zero or more times (*): .*

Though I suspected above condition to be true since the regexp fails to
match!




More information about the sr-users mailing list