REOPTALT


strings
Since v1.2.16
Available on all platforms
See also

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.

Signature

Examples

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