Category talk:Wren-pattern: Difference between revisions

Content added Content deleted
(Adjustments to now recognize 'µ' as an extended lower case letter.)
(→‎Wren patterns: Corrected an example.)
Line 167: Line 167:
Quantifiers always qualify ''singles''. Any departure from this is an error and groups of characters cannot therefore be directly quantified.
Quantifiers always qualify ''singles''. Any departure from this is an error and groups of characters cannot therefore be directly quantified.


There may sometimes be ways to quantify them indirectly either by simply repeating the pattern or by using captures and back-references. For example "[abab|ab|]" would match 'ab' repeated 2, 1 or 0 times and "[abcd]/1/1" would match 'abcd' repeated exactly three times.
There may sometimes be ways to quantify them indirectly either by simply repeating the pattern or by using captures and back-references. For example "[abab|ab|]" would match 'ab' repeated 2, 1 or 0 times and "[abcd]$1$1" would match 'abcd' repeated exactly three times.


However, this sort of approach clearly has its limitations and there is no way to match a group of characters repeated an indefinite number of times.
However, this sort of approach clearly has its limitations and there is no way to match a group of characters repeated an indefinite number of times.