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 des

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, "]*)>") > > If I use "]*)>" (Without the \s) I have no error. > > The error occurs when I press the F5 function key to exe

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

2012-04-25 Thread Daniel Quintero
Hello, I have an error in this line of code when I use the \s constant in the pattern: re = New Regexp(sText, "]*)>") If I use "]*)>" (Without the \s) I have no error. The error occurs when I press the F5 function key to execute the program. This is the error text: This applicatio

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 Friday 31 October 2008 22:40:03 Rob wrote: > function FindAll(subj as string, pattern as string) as String[] > dim re as Regexp > dim matches as new String[] > re = new Regexp(subj, pattern) > do while re.offset >= 0 and subj <> "" > matches.push(r

Re: [Gambas-user] Regular expressions

2008-10-31 Thread Rob
On Friday 31 October 2008 12:09, Markus Schatten wrote: > Thanks a lot for the links, they were very helpfull. Is there a way to > use a regex for looping through all matches? Something like scan() > in a for each loop or findall in python-re? I was able to figure out > that the Text property h

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 no

Re: [Gambas-user] Regular expressions

2008-10-30 Thread Rob
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 to use such objects. Is there > any documentation/

[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 som