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!