Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to remoove quotes ("" - symbols) from the begining ad the end

Status
Not open for further replies.

1yura1

Programmer
Feb 7, 2003
36
UA
How to remoove quotes (" - symbol) from the begining ad the end of the string
 
There are alot of ways to do this. One way to do it with a regex is
Code:
$string =~ s/^"|"$//g;
The '[tt]^"[/tt]' matches the quote at the start of the string and the '[tt]"$[/tt]' matches the quote at the end--both of which get stripped off.

jaa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top