Emerald Editor Discussion
September 23, 2017, 05:22:13 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]
Author Topic: regex bug: + and * not greedy  (Read 2382 times)
0 Members and 1 Guest are viewing this topic.
Posts: 16

« on: June 07, 2010, 10:06:18 am »

POSIX Bracket Expressions in regular expressions...
given regex search expression "[:alpha:]+\s1:"
given text "Joshua 1:3"
highlights "a 1:" in emerald.
some editors have a separate operators for "greedy" and "minimal".
for instance
minimal: * +
greedy: @ #

but this way isn't necessarily the best nor is it the standard.  the standard is
greedy: * +

I will leave the implementation decisions up to you, greedy or minimal+greedy.
Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.08 seconds with 18 queries.