Regular expressions: Difference between revisions

m
(added langur language example)
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.
 
Valid quote mark pairs include the following.
There are several functions that can be used with regex literals (and some of them with plain strings), such as match(), replace(), split(), etc.
// '' "" {} [] () <>
 
There are several functions that can be used with regex literals (and some of them with plain strings)regexes, such as match(), replace(), split(), etc.
 
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.
885

edits