"ignore case option" for rex commands

R

Rajeswaran M

Guest
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(loxerCase(x))
 
I 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))

--
----------------------------------------------------------
Dominic DuVarney Phone: (512) 418-5762

Centaur Technology Email: duvarney@centtech.com
----------------------------------------------------------
 
On Mon, 06 Mar 2006 13:57:21 -0600, Dominic Duvarney
<srlayoutdesigner-NOSPAM@yahoo.com> wrote:

I 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))
There is a plan to provide functions to do pattern matching based on PCRE. I
think this _might_ be in IC610. This will allow you to do the more powerful
kinds of extended regular expressions that perl allows.

Regards,

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top