leSearchHierarchy and [ ]

Discussion in 'Cadence' started by tnk11, Dec 10, 2004.

  1. tnk11

    tnk11 Guest

    Hi all,
    How can I use leSearchHierarchy in conjunction with square
    bracket? I think if I can manage a '\' in front of '[, it may work. But
    I have very hard time adding this stupid character into the string. Any
    tips please?

    tnk
     
    tnk11, Dec 10, 2004
    #1
  2. Wild guess without trying it - you might need to use a double \ (i.e. \\[).
    If I remember rightly, the layout search uses regular expressions - and so
    you need to escape the [] which are regexp metacharacters. However, backslash
    has special meaning in strings (like in C), and so you need to escape the
    backslash too...

    Not sure this is right - give it a try though.

    Regards,

    Andrew.
     
    Andrew Beckett, Dec 11, 2004
    #2
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.