Re: extract anything between escape characters

From: Ing. Branislav Gerzo (konfera_at_2ge.us)
Date: 11/02/04


Date: Tue, 2 Nov 2004 10:05:39 +0100
To: beginners@perl.org

Khairul Azmi [KA], on Tuesday, November 2, 2004 at 16:43 (+0800)
contributed this to our collective wisdom:
KA> I am newbies in this regex world. I just want to extract the character
KA> double quotes at the beginning and the ending of a string.

KA> $string1 = "this is the string";

KA> so that $string1 would be 'this is the string' without the double quotes. Thanks

$string =~ /.*/;

this is very very easy, just read something more about regexes. If
you'll know them, you'll love them :)

-- 
 ...m8s, cu l8r, Brano.
[Incest is relatively boring.]


Relevant Pages

  • Re: Beginners Program
    ... I'd put single quotes aroung the, ... If you are putting "s in a string then it is usually best to use a different ... input file things could go wrong. ... and that the final line of input does end with a newline character. ...
    (comp.lang.perl.misc)
  • Re: Can an "Update" Query insert quotation marks around text?
    ... quotes) is because the software is reacting to the presence of your quotes. ... that text string is delimited by " characters within the software, ... software doubles the " character because that tells the software that the " ... and the last " character marks the end of the text string. ...
    (microsoft.public.access.queries)
  • Re: Re: Vista search including double quote
    ... There is only one occurance of the word Protection in the ... There is no need or reason to enclose one word within quotes in a content ... string that includes a double quote. ... Maybe there's an escape character I can prefix ...
    (microsoft.public.windows.vista.general)
  • Re: Update existing values incrementally w/UPDATE SQL
    ... I think it would be safe to say, use the Dim statement any time you are ... Dim basically tells vba that you want to initiate a new variable. ... As far as quotes go, this was one of the trickiest ... Consider vba's interpretation of a string: ...
    (microsoft.public.access.modulesdaovba)
  • Re: Update existing values incrementally w/UPDATE SQL
    ... and in the book; Access 2007 VBA Programmer's Reference. ... As far as quotes go, this was one of the trickiest ... Consider vba's interpretation of a string: ... when an SQL is processed (I use an SQL example because it is the most ...
    (microsoft.public.access.modulesdaovba)