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
Custom SQL in Web Intelligence Error
SAP RFC returning Invalid Data Type
How do I change default email address in site on sharepoint 2007 moss
How convert Windows 7 shadow copies into usable Restore Points like XP?
HP Insight Diagnostic Error Message Memor/Power Failure
The 5000n printer will only print to the manual feed tray
How to connect Crystal Report to SQL database in .NET C#
jQuery script error in Firebug
Recover auto save doc.
Always view the last row of a textarea box