Opened 12 years ago
Closed 12 years ago
#2616 closed Feature Request (Rejected)
StringRegExp - new example - request
| Reported by: | mlipok | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | Documentation | |
| Version: | Severity: | None | |
| Keywords: | Cc: | 
Description
Please make a one new example which show the difference between:
greedy / possessive / lazy
i think the best example (simplest) can be done by using this "methodes":
? 0 or 1, greedy. ?+ 0 or 1, possessive. ?? 0 or 1, lazy.
justification:
in SRE these methodes are very important and used in many different ways:
? 0 or 1, greedy. 
?+ 0 or 1, possessive. 
?? 0 or 1, lazy. 
* 0 or more, greedy. 
*+ 0 or more, possessive. 
*? 0 or more, lazy. 
+ 1 or more, greedy. 
++ 1 or more, possessive. 
+? 1 or more, lazy. 
{x} exactly x. 
{x,y} at least x and no more than y, greedy. 
{x,y}+ at least x and no more than y, possessive. 
{x,y}? at least x and no more than y, lazy. 
{x,} x or more, greedy. 
{x,}+ x or more, possessive. 
{x,}? x or more, lazy. 
It would be good to make clear example showing the difference between these methods
I know that it is now a good description of the greatly expanded but always better example demonstrates the use, in other words:
code is better than words ;)
Attachments (0)
Change History (4)
comment:1 Changed 12 years ago by Jpm
comment:2 Changed 12 years ago by mlipok
during the weekend I'll try to prepare
comment:4 Changed 12 years ago by guinness
- Resolution set to Rejected
- Status changed from new to closed
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.


why not,
just add the example you have in mind