[prev in list] [next in list] [prev in thread] [next in thread]
List: gambas-user
Subject: Re: [Gambas-user] Find a ( with a Regexp
From: Benoît_Minisini <gambas () users ! sourceforge ! net>
Date: 2010-04-23 22:17:39
Message-ID: 201004240017.39303.gambas () users ! sourceforge ! net
[Download RAW message or body]
> Component status is experimental... maybe there are bug?
>
> Jussi
>
> On Fri, Apr 23, 2010 at 22:43, David Villalobos Cambronero
>
> <david.villalobos.c@gmail.com> wrote:
> > No, it has to be inside a Regexp
> >
> > $hRexEpr = New Regexp($sLineSymbol, "^function \(")
> >
> > But it does no work :(
> >
> > --
> > Gracias
> > ---
> > David
\( is Gambas quoting, the regexp does not see it. To use regexp quoting you
must quote the slash too:
$hRegEpr = New Regexp($sLineSymbol, "^function \\(")
Regards,
--
Benoît Minisini
------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic