Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Stefan

Pages: 1 ... 47 48 [49]
721
Bug reports / Regular Expression: greedy option
« on: November 30, 2008, 11:12:01 pm »
Hi alex,

RegEx in HippoEDIT works lazy (non-greedy)

How can i search greedy?


f.ex.

I have this text
Quote
start
HippoEDIT is great!
HippoEDIT is great!
HippoEDIT is great!
HippoEDIT is great!


Test 1:

if i was on line 'start'
and want to search for 'eat!'
with .+eat (RegEx and Ext. Selection are enabled)
i get only this selected:
Quote
start
HippoEDIT is great!

HippoEDIT is great!
HippoEDIT is great!
HippoEDIT is great!
This was lazy.


Test 2:

What should i do to search greedy to get:
Quote
start
HippoEDIT is great!
HippoEDIT is great!
HippoEDIT is great!
HippoEDIT is great!


-----

I think

.*?eat!

should find lazy like:

Quote
start
HippoEDIT is great!

HippoEDIT is great!
HippoEDIT is great!
HippoEDIT is great!



and

.*eat!

should find greedy like

Quote
start
HippoEDIT is great!
HippoEDIT is great!
HippoEDIT is great!
HippoEDIT is great!


---


What do you think?

May i suggest to let  the RegEx  be "standard" i.e.: greedy
and allow an '?'-sign to switch to non-greedy?

722
General Discussion / Testimonials (Pleased user thanks)
« on: October 22, 2008, 07:59:50 pm »
I just have the need to register
to say you Thank You for this great editor!

I test it a few hours only but i see it has a lot of possibilities.
Nearly portable till of the key.
Working RegEx implementation with multi line support.
Column select, Templates, Auto complete, Paste as HTML, well thought out Tools-Support
and a lot of other features i see and have to discover  ;)

I hope this is under heavy development? and you are prepared to get a lot of suggestions?  ;D


Sorry for my bad english if i didn't find the right words (corrections welcome)

Stefan
.

Pages: 1 ... 47 48 [49]