[Gambas-user] how to do a regex in gambas?
Jaap Cramer
jaap_cramer at ...67...
Tue Apr 15 21:40:41 CEST 2008
Hi
for that functions I use a this construction:
If instr(sString, "i") < instr(sString, "86") and instr(sString, "i")*instr(sString, "86")>0 then
...
endif
I use instr(sString, "i")*instr(sString, "86") to make sure that both instr-results are bigger than 0
grt,
Jaap
----------------------------------------
> Date: Tue, 15 Apr 2008 14:04:19 -0500
> From: m0e.lnx at ...626...
> To: gambas-user at lists.sourceforge.net
> Subject: Re: [Gambas-user] how to do a regex in gambas?
>
> is it possible to use a wildcard like this in a gambas statement?
>
> Something like this
>
> IF Instr(sString, "i*86")> 0 then
>
> DO THIS
>
> END IF
>
> I'm processing a line of text that may have that in it... trying to
> find out if it's possible and how to use wild cards in a statement
> like this
>
> Please help
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
_________________________________________________________________
Check je Hotmail nu ook op je mobiel!
http://windowslivemobile.msn.com/BrowserServiceHotmail.aspx?lang=nl-nl
More information about the User
mailing list