Ignoring Whitespace with Regex(perl)
Posted
by Zerobu
on Stack Overflow
See other posts from Stack Overflow
or by Zerobu
Published on 2010-04-04T02:02:11Z
Indexed on
2010/04/04
2:13 UTC
Read the original article
Hit count: 342
Hello, I am using Perl Regular expressions. How would i go about ignoring white space and still perform a test to see if a string match. For example.
$var = " hello "; #I want var to igonore whitespace and still match
if($var =~ m/hello/)
{
}
© Stack Overflow or respective owner