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
How do I activate a product key for Windows 7 professional on a pushed machine
Small Business Server 2008 Static IP change
Extract date and part of the line from a log file
How do we use GPO (Group Policy) to REMOVE trusted sites from I.E. Trusted Sites Zone on workstations on a domain?
PayPal Express Checkout Module
WSUS Clients not reporting to the WSUS console or SBS 2008 Console
ADSL router/cisco switch
BSOD Windows 2008 R2 Hyper-V
Query To Detect if unicode data exists in field in SQL Server 2005
Failed to allocate port error when configuring EM (Oracle 11g)