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
riddle vb.net calling unmanaged c++ dll
EMC DPA (Data Protectiopn Advisor) Report
Operator '=' is not defined for type 'DBNull' and type 'Integer' - how to fix
How can I uninstall a corrupt broadcom driver?
speak & auto type?
What are some good guides on designing and building video games
How to re-write code using strings to Delphi 2010
Worldspan - calling worldspan web service
Popup details on mouse hover using Jquery
How send an array by url with php???????