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
350ft Coax Cable installation for modem
How to create and end a session for a user?
Secure Email for HIPAA compliance
XP Mode - usb software key not working
looking for best web designer.
MS Dynamics 4.0 Outlook Configuration - Microsoft Dynamics CRM server is not available
Cisco ASA 5505 not passing traffic (Possible NAT or ACL issue)
GroupWise 6.0.1 - Some addresses are undeliverable and have been crossed out
Unattended Windows 7 Installation answer file not working
Safari 5 Crashes immedietly