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
Riverbed with Cisco GRE Tunnel
What is the process for getting the proper dll to use with 'example' code? system.web.extensions.dll dll question
Rmail add file attachment how-to ?
No icon on desk top windows XP
Disable Calendar Auto Accept request for outlook 2007
Manual sbs03 -> sbs08 Migration
Server Returns 404 Error when publishing through WebDAV
Exchange 2010 DAG becomes unavailable on second site
Outlook 2010 with Exchange 2000?
Website script to track each user's individual experience