Re: [Gambas-user] gb.pcre: RegExp.Replace() problem

2014-12-21 Thread Benoît Minisini
Le 21/12/2014 18:41, RICHARD WALKER a écrit : > Sorry to butt in but would it help to have Replace work the way Benoît > had it originally and use something else for Tobi's substitution of > one instance for a substitute string - like maybe Substitute? Or is > that already spoken for? > > Richard >

Re: [Gambas-user] gb.pcre: RegExp.Replace() problem

2014-12-21 Thread RICHARD WALKER
Sorry to butt in but would it help to have Replace work the way Benoît had it originally and use something else for Tobi's substitution of one instance for a substitute string - like maybe Substitute? Or is that already spoken for? Richard -

Re: [Gambas-user] gb.pcre: RegExp.Replace() problem

2014-12-21 Thread Benoît Minisini
Le 21/12/2014 16:18, Tobias Boege a écrit : > On Sun, 21 Dec 2014, Beno?t Minisini wrote: >> Le 21/12/2014 14:33, Beno?t Minisini a ?crit : >>> Le 20/12/2014 09:27, Tobias Boege a ?crit : Hi, attached is a script which essentially executes Print RegExp.Replace(" * * a *

Re: [Gambas-user] gb.pcre: RegExp.Replace() problem

2014-12-21 Thread Tobias Boege
On Sun, 21 Dec 2014, Beno?t Minisini wrote: > Le 21/12/2014 14:33, Beno?t Minisini a ?crit : > > Le 20/12/2014 09:27, Tobias Boege a ?crit : > >> Hi, > >> > >> attached is a script which essentially executes > >> > >>Print RegExp.Replace(" * * a *", "^[ ]*\\*", "'") > >> > >> On my system the o

Re: [Gambas-user] gb.pcre: RegExp.Replace() problem

2014-12-21 Thread Benoît Minisini
Le 21/12/2014 14:33, Benoît Minisini a écrit : > Le 20/12/2014 09:27, Tobias Boege a écrit : >> Hi, >> >> attached is a script which essentially executes >> >>Print RegExp.Replace(" * * a *", "^[ ]*\\*", "'") >> >> On my system the output is >> >>'' a * >> >> which I don't understand. As th

Re: [Gambas-user] gb.pcre: RegExp.Replace() problem

2014-12-21 Thread Benoît Minisini
Le 20/12/2014 09:27, Tobias Boege a écrit : > Hi, > > attached is a script which essentially executes > >Print RegExp.Replace(" * * a *", "^[ ]*\\*", "'") > > On my system the output is > >'' a * > > which I don't understand. As the regular expression indicates I want only > the one match a

[Gambas-user] gb.pcre: RegExp.Replace() problem

2014-12-20 Thread Tobias Boege
Hi, attached is a script which essentially executes Print RegExp.Replace(" * * a *", "^[ ]*\\*", "'") On my system the output is '' a * which I don't understand. As the regular expression indicates I want only the one match at the beginning of the line to be replaced. Not the second one be