G
Grant Nosbush
How would I go about removing spaces from a string in perl except
those spaces found in brackets? In other words, if I have the
following string:
$str = "Hello World (My name is Bob) What is your name?"
I would like it to become:
$str = "HelloWorld(My name is Bob)Whatisyourname?"
I was thinking of using substituion in Perl, but not sure what
parameters to use. Anyone have any ideas? Thanks for your help!
those spaces found in brackets? In other words, if I have the
following string:
$str = "Hello World (My name is Bob) What is your name?"
I would like it to become:
$str = "HelloWorld(My name is Bob)Whatisyourname?"
I was thinking of using substituion in Perl, but not sure what
parameters to use. Anyone have any ideas? Thanks for your help!