Microsoft
Software
Hardware
Network
Question : perl, strip spaces and double quote character at beginning and at the end of a string
How do I strip spaces and double quote character at beginning and at the end of a string, if the double quote exist?
$string1 = "\"my string1\""; # => to "my string1"
$string2 = " \" my string2 \" "; #=> to " mystring2 "
Answer : perl, strip spaces and double quote character at beginning and at the end of a string
Please try this:
s/(^\s*")|("\s*$)//g;
Random Solutions
Public Folder replication or moving not working after SBS 2008 migration
automatically set user rights in folder
itunes wont start
Unable to access certain domains
Exchange 2010 a circular logging
Can you use SQL*Loader to import a dbf file?
why notepad opens in small screen
Macbook very slow after harddrive upgrade
User not a mailbox user
app-v prebuilt apps