Skip to main content

Optimizing regular expressions in Java - Java World

Popularity Report

Total Popularity Score: 0

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Rank

Bookmark History

Saved by 1 people (0 private), first by anonymouse user on 2008-07-28


Public Sticky notes

it would be better to use the reluctant quantifier "*?" and change the sub-expression to ".*?a".

Highlighted by benxshen

instead of using "a(.*)a", it's much better to use "a([^a]*)a".

Highlighted by benxshen

Readers (1)