Re: [Gambas-user] Regular Expressions :: Error with gb.pcre component

2012-04-25 Thread Benoît Minisini
Le 25/04/2012 18:58, Daniel Quintero a écrit : Hello, I have an error in this line of code when I use the \s constant in the pattern: re = New Regexp(sText, span\s([^]*)) If I use span([^]*) (Without the \s) I have no error. The error occurs when I press the F5 function key to

Re: [Gambas-user] Regular Expressions :: Error with gb.pcre component

2012-04-25 Thread Daniel Quintero
Mmm, I updated my Gambas 3.1 last week, I don't know exactly what revision is, but is recent. Ok, I will fix my code. Thanks. *_* *Lic. Daniel Quintero Rojas* http://www.dquinter.com.mx http://futbol.dquinter.com.mx http://twitter.com/#!/dquinteror *¡Saludos

Re: [Gambas-user] Regular expressions

2008-11-01 Thread Markus Schatten
Just if someone needs it, I've added an optional argument submatchindex that will return the matches of a given submatch. PRIVATE FUNCTION FindAll(subj AS String, pattern AS String, OPTIONAL submatchindex AS Integer = 0) AS String[] DIM re AS Regexp DIM matches AS NEW String[]

Re: [Gambas-user] Regular expressions

2008-10-31 Thread Markus Schatten
On Thursday 30 October 2008 23:32:09 Rob wrote: On Thursday 30 October 2008 17:59, Markus Schatten wrote: I'm a newbee to Gambas and I have a little problem. I would like to use the pcre Regexp class, but I seem not to be able to find any examples of how to instantiate a new object nor how

[Gambas-user] Regular expressions

2008-10-30 Thread Markus Schatten
Hello group members, I'm a newbee to Gambas and I have a little problem. I would like to use the pcre Regexp class, but I seem not to be able to find any examples of how to instantiate a new object nor how to use such objects. Is there any documentation/tutorial/example? If not could please