Re: [Gambas-user] Help with RegExp

2011-09-24 Thread tobias
On 24.09.2011 01:16, Benoît Minisini wrote: >> I'm not sure whether you are trying to learn regexp patterns or parse a >> gambas sourcecode line, but if the second then this is how I do it. >> >> >> ' Gambas module file >> >> Public Sub Main() >> Dim sSourceCode As String ' The original source

Re: [Gambas-user] Help with RegExp

2011-09-23 Thread Bruce Bruen
On Sat, 2011-09-24 at 01:16 +0200, Benoît Minisini wrote: > Otherwise there is a Gambas syntax analyzer in the gb.eval component if you > need... > What!!!??? You mean all this code I've written to reverse engineer a class into an XMI file already . :-) Oh, wait. The eval stuff only w

Re: [Gambas-user] Help with RegExp

2011-09-23 Thread Benoît Minisini
> On Sat, 2011-09-24 at 00:14 +0200, tobias wrote: > > hi, > > > > i have a problem with regular expressions: i'm not very good in using > > them. i want to determine the comment string in a gambas comment with > > gb.pcre and been sitting down for 3 hours now, totally frustrated... > > i thought,

Re: [Gambas-user] Help with RegExp

2011-09-23 Thread Bruce Bruen
On Sat, 2011-09-24 at 00:14 +0200, tobias wrote: > hi, > > i have a problem with regular expressions: i'm not very good in using them. > i want to determine the comment string in a gambas comment with gb.pcre > and been sitting down for 3 hours now, totally frustrated... > i thought, i have to s

[Gambas-user] Help with RegExp

2011-09-23 Thread tobias
hi, i have a problem with regular expressions: i'm not very good in using them. i want to determine the comment string in a gambas comment with gb.pcre and been sitting down for 3 hours now, totally frustrated... i thought, i have to search for the first ' apostrophe from the left which isn't be