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
is there a way to boot to an attached drive
Asterisk 1.4 assigning outbound routes based on extension
Setting up wireless on a Cisco 1811
Show gridlines in visio diagram saved as jpg file.
128GB USB Flash drives
Count/sum items between dates
secure emails
MS SQL SP if ID = 1 then where price < 25.00
Treeview control that support thumbnails or images.
SBS 2008 Inetpub log files