Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Regexp and Parentheses
Topic Summary: Finding single parenthesis with regexp
Created On: 21-Oct-2004 13:35
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
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.
Answer This question was answered by Ross Morgan, on Thursday, October 21, 2004 6:30 PM

Answer:
replace \( with \\( to make DXL happy with the regexp string.
and you may want to use...
\(.*
...to match a "(" followed by any number of other characters to the end of the line
e.g
Regexp rOpenBracket = regexp("\\(.*")

 21-Oct-2004 13:35
User is offline View Users Profile Print this message


Jeremy Eble

Posts: 30
Joined: 20-Sep-2002

I am trying to create a regular expression that looks for one or more open parentheses, (, or close parentheses, ), but I am having trouble. It seems that "\(*" should be it, but I get a badly formed token. Any thoughts?

-------------------------
Jeremy Eble
Software Engineer
Teragon Consulting LLC
jeremy.r.eble@lmco.com
Report this to a Moderator Report this to a Moderator
 21-Oct-2004 15:24
User is offline View Users Profile Print this message


Ross Morgan

Posts: 74
Joined: 15-Apr-2004

Answer Answer
replace \( with \\( to make DXL happy with the regexp string.
and you may want to use...
\(.*
...to match a "(" followed by any number of other characters to the end of the line
e.g
Regexp rOpenBracket = regexp("\\(.*")

Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 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.