Regular expressions: Difference between revisions
Content added Content deleted
Langurmonkey (talk | contribs) (added langur language example) |
Langurmonkey (talk | contribs) |
||
Line 1,085: | Line 1,085: | ||
Langur uses semi-integreted regex. An re2 literal without interpreting langur escape codes uses RE// and with langur escape codes interpreted uses re//. Langur escape codes, when applicable, are interpreted before a string is sent to the regex compiler. |
Langur uses semi-integreted regex. An re2 literal without interpreting langur escape codes uses RE// and with langur escape codes interpreted uses re//. Langur escape codes, when applicable, are interpreted before a string is sent to the regex compiler. |
||
Valid quote mark pairs include the following. |
|||
⚫ | |||
// '' "" {} [] () <> |
|||
⚫ | |||
Progressive matching (a.k.a. "global") is done with split() and replace() and the functions that use the plural form, such as matches(), indices(), etc. These will return an array or array of arrays. Progressive matching can be limited by passing a maximum. |
Progressive matching (a.k.a. "global") is done with split() and replace() and the functions that use the plural form, such as matches(), indices(), etc. These will return an array or array of arrays. Progressive matching can be limited by passing a maximum. |