Loading

REOPTALT

strings

Produces a Regular Expression OPTimized for ALTernation from a list of STRINGs. Large alternations in regular expressions can lead to excessive backtracking and poor matching performance. In order to mitigate this, the REOPTALT function will produce a regular expression from a list of STRINGs which reduces the backtracking thus leading to better matching performance.

REOPTALT is available since version 1.2.16.

See also

Signatures

Examples

[ 'allow' 'almost' 'alone' 'along' 'already' 'also' 'although' 'always' 'among' 'amount' 'analysis' 'and' 'animal' 'another' 'answer' 'any' 'anyone' 'anything' 'appear' 'apply' 'approach' ] REOPTALT