Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic SYNERGY (steve huntington)
Decrease font size
Increase font size
Topic Title: Mask special characters in Query
Topic Summary:
Created On: 19-Apr-2004 11:06
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 19-Apr-2004 11:06
User is offline View Users Profile Print this message


Barbara Neeb-Bruckner

Posts: 7
Joined: 27-Aug-2003

How can I specify a match for a string containing a special character like ' ?

For example:

You have folder descriptions:
4.1: All bnb's Miscellaneous Tasks
4.2: All bnb's Miscellaneous Tasks

You want to query for those folders using match:
ccm query -t folder "description match '*All bnb's Misc*'"

The above query doesn't work because of the ' in the text. Any ideas or recommendations?

Best regards, Bárbara Neeb-Bruckner


Report this to a Moderator Report this to a Moderator
 19-Apr-2004 11:15
User is offline View Users Profile Print this message


Russ Braithwaite

Posts: 41
Joined: 13-Jun-2003

Although it's not an ideal solution - you can replace the ' with a ? - which works pretty well.

-------------------------
Russ Braithwaite
Software Configuration Management
Friends Provident
Report this to a Moderator Report this to a Moderator
 26-Apr-2004 19:02
User is offline View Users Profile Print this message


Muralidhar Rajagopal

Posts: 5
Joined: 15-Sep-2003

Hi
You should use smatch instead of match in your query.
The query could be
ccm query -type folder "description smatch '*<username>*'"
Muralidhar
Report this to a Moderator Report this to a Moderator
 7-May-2004 10:45
User is offline View Users Profile Print this message


Barbara Neeb-Bruckner

Posts: 7
Joined: 27-Aug-2003

I'm sorry. I don't understand how to use 'smatch'. The documentation only says:

smatch
The value of the attribute must match a string.

Do you have another example? The example you gave me, didn't work. Or may be I used smatch in the wrong way.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 0 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 15:34.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.