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
Bulk insert a excel file
The marquee progressbar hangs as the next line of the code executes
"The connection to Microsoft Exchange is unavailable. Outlook must be online or connected to complete this action."
VB script to uninstall with admin rights.
Can't print to Dymo Labelwriter 400 turbo after adding labelwriter 450 turbo drivers on windows 2003 terminal server
Overlapping digram borders
Test javamail through command line
sql tuning
Joomla Re-install
Stored Procedure not working in Crystal