Hi, hopefully a simple one.
I want to check a textarea input field data and convert to simple comma separated, the input has the usual \r\n , but it may or may not have a comma before it already and or 1 or more spaces either side.
is this right?
$address =~ s/\s+,\s+\r\n/,/g;
It's not erroring , but wanted to check it was doing what I think it is.
Regards,
1DMF.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
I want to check a textarea input field data and convert to simple comma separated, the input has the usual \r\n , but it may or may not have a comma before it already and or 1 or more spaces either side.
is this right?
$address =~ s/\s+,\s+\r\n/,/g;
It's not erroring , but wanted to check it was doing what I think it is.
Regards,
1DMF.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!