Regex (query directive)

From WandoraWiki
(Difference between revisions)
Jump to: navigation, search

Revision as of 10:53, 20 August 2009

Description

Includes rows where the active column matches the specified regular expression. Directive can optionally be given a mode parameter which is a bit-wise or of several different options. Available options are Regex.MODE_GLOBAL and Regex.MODE_ICASE. The GLOBAL option causes the regular expression to be matched against the whole input. Otherwise it is sufficient that part of the input matches. The ICASE option causes matching to be performed ignoring case. If no mode is provided, global is assumed, ignore case is not.

Constructor

Regex(String regex)

Regex(String regex,int mode)

Notes

Regex directive can also be used to replace matches with other strings but replacement is not usable when using Regex directive as a filtering directive.

Personal tools