in reply to Thanks !! (Re: How to ignore/replace all whitespaces,tab spaces, new line from a given string in REGEX ??)
in thread How to ignore/replace all whitespaces,tab spaces, new line from a given string in REGEX ??

Keep in mind that will remove the spaces between words too. If you just want to remove the leading and trailing spaces, use:
$name =~ s/^\s+//; $name =~ s/\s+$//;
  • Comment on Re: Thanks !! (Re: How to ignore/replace all whitespaces,tab spaces, new line from a given string in REGEX ??)
  • Download Code