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
Check to see if a table has a certain value, MS Access 2003
Ubuntu default chat client logs
Diffrent vb.net and Sql Server MD5 hashing
MS Outlook error - 0x8004010F
How to get the text from jsp file to database?
JMS servers in weblogic
Nokia E52 Language
How to determine hard disk activities
How to best deal with a Filemaker dinosaur?
plain text feed for exchange rates