Not sure what you mean by "ignore" all white space, and you don't say what you want to "replace" it with, so this code just removes all white space.
$name =~ s/\s//g;
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: How to ignore/replace all whitespaces,tab spaces, new line from a given string in REGEX ??
by davorg
in thread How to ignore/replace all whitespaces,tab spaces, new line from a given string in REGEX ??
by sugarkannan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |