Re: [Gambas-user] Problem with lazy regexp

2017-04-24 Thread T Lee Davidson
On 04/24/2017 04:25 AM, Tobias Boege wrote: > You can still get greedy quantifiers by using ungreedy ones in your > pattern... LOL. To get ungreedy behavior, use greedy quantifiers. That's logical. Thank you very much, Tobi, for digging that up and updating the documentation. Perhaps, though, m

Re: [Gambas-user] Problem with lazy regexp

2017-04-24 Thread Tobias Boege
On Mon, 24 Apr 2017, Tobias Boege wrote: > On Sun, 23 Apr 2017, T Lee Davidson wrote: > > According to http://gambaswiki.org/wiki/doc/pcre , using "*?" in a regular > > expression should lazily match 0 or more characters. However, it appears to > > act greedily. > > > > I am trying to do some very

Re: [Gambas-user] Problem with lazy regexp

2017-04-24 Thread Tobias Boege
On Sun, 23 Apr 2017, T Lee Davidson wrote: > According to http://gambaswiki.org/wiki/doc/pcre , using "*?" in a regular > expression should lazily match 0 or more characters. However, it appears to > act greedily. > > I am trying to do some very simple HTML tag stripping with > 'Regex.Replace(sTex

[Gambas-user] Problem with lazy regexp

2017-04-23 Thread T Lee Davidson
According to http://gambaswiki.org/wiki/doc/pcre , using "*?" in a regular expression should lazily match 0 or more characters. However, it appears to act greedily. I am trying to do some very simple HTML tag stripping with 'Regex.Replace(sText, "<.*?>", "")', and it takes out way more than jus