"ignore case option" for rex commands

Discussion in 'Cadence' started by Rajeswaran M, Mar 6, 2006.

  1. Rajeswaran M

    Rajeswaran M Guest

    How to ignore case when we use rexMatchp or rexExecute commands.
     
    Rajeswaran M, Mar 6, 2006
    #1

  2. string -> the string you want to match
    list -> the list you want to search through

    rexCompile(lowerCase(string))
    setof(x list rexExecute(loxerCase(x))
     
    Dominic Duvarney, Mar 6, 2006
    #2
  3. Rajeswaran M

    Rajeswaran M Guest

    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.
     
    Rajeswaran M, Mar 6, 2006
    #3
  4. I don't believe it's possible with a single compile


    --
     
    Dominic Duvarney, Mar 6, 2006
    #4
  5. 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.
     
    Andrew Beckett, Mar 7, 2006
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.