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
Want to add wireless to wired network
Configuration for QNAP TS-410U after reset
port 443 closed
onmouseover is not working in Mozilla
Exchange 2010 Rollup 3 Issues
convert to valid DateTime
how can I read more then one cell an excel file in vb.net
breadcrumb trail in a dropdown box
Zebra LP 2844 label printer prints the first print job successfully, subsequent print jobs after skip labels and/or print partial data on labels until computer is rebooted.
Should I make a Drupal Theme from scratch?