R
Rajeswaran M
Guest
How to ignore case when we use rexMatchp or rexExecute commands.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
How to ignore case when we use rexMatchp or rexExecute commands.
Rajeswaran M wrote:
How to ignore case when we use rexMatchp or rexExecute commands.
string -> the string you want to match
list -> the list you want to search through
rexCompile(lowerCase(string))
setof(x list rexExecute(loxerCase(x))
Thanks. That would really solve the current need.
But I foresee a problem, What if I want to use the single rexCompile (to
improve performance), in mixed mode, ie., sometimes with case sensitive
option and sometimes with ignore case.
Dominic Duvarney wrote:
Rajeswaran M wrote:
How to ignore case when we use rexMatchp or rexExecute commands.
string -> the string you want to match
list -> the list you want to search through
rexCompile(lowerCase(string))
setof(x list rexExecute(lowerCase(x))
There is a plan to provide functions to do pattern matching based on PCRE. II don't believe it's possible with a single compile
Rajeswaran M wrote:
Thanks. That would really solve the current need.
But I foresee a problem, What if I want to use the single rexCompile (to
improve performance), in mixed mode, ie., sometimes with case sensitive
option and sometimes with ignore case.
Dominic Duvarney wrote:
Rajeswaran M wrote:
How to ignore case when we use rexMatchp or rexExecute commands.
string -> the string you want to match
list -> the list you want to search through
rexCompile(lowerCase(string))
setof(x list rexExecute(lowerCase(x))