Traditionally SREs have had the following aliasesallowing the user to choose between brevity andself-description:
From SCSH:
| or& and: seqFrom IrRegex (in this case introducing a new short form):
$ submatch=> submatch-named
For consistency Michael Montague suggested allSREs have a short and long form. John Cowansuggests the following names:
? optional* zero-or-more+ one-or-more>= at-least= exactly** repeated
?? non-greedy-optional*? non-greedy-zero-or-more**? non-greedy-repeated
For the cset-sres we'd also need:
/ char-range (or cset-range?)- difference (or diff?)~ complement (or not?)
I would suggest not introducing new short formsof existing long names. Comments welcome, butif there are no objections I'll go with this.
--Alex