leSearchHierarchy and [ ]
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
leSearchHierarchy and [ ]

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence
Author Message
tnk11@yahoo.com
Guest





Posted: Fri Dec 10, 2004 9:48 pm    Post subject: leSearchHierarchy and [ ] Reply with quote

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

Back to top
Andrew Beckett
Guest





Posted: Sun Dec 12, 2004 3:44 am    Post subject: Re: leSearchHierarchy and [ ] Reply with quote

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.

On 10 Dec 2004 08:48:24 -0800, "tnk11@yahoo.com" <tnk11@yahoo.com> wrote:

Quote:
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
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB