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
cisco routers and switches
Mounting NFS NAS in ESX 3
changing external server name.. do I need to change anything in Outlook
jquery dhtml dynamic population issue
iPad Camera Connection Kit does not display .jpg images on iPad
Outlook 2007 does not remember password.
perl regexp with div tags and space
Remove space from textbox automatically
Problems installing the AjaxControlTooKit.dll
what is the default directory to run jsp file from tomcat 5.5 and what directory for mysql_connector.jar file to be placed?