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 help again
Topic Summary: extract string
Created On: 11-Sep-2007 20:23
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.
 11-Sep-2007 20:23
User is offline View Users Profile Print this message


Tarun Inabathuni

Posts: 59
Joined: 18-Jan-2005

string s = " that {\\lazy\\fox jumps}{\\lazy\\fox fence} on to \\lazy\\fox other} side"

if this is the string i need a function which can print

that jumps fence on to other side

any help appreciated..
Report this to a Moderator Report this to a Moderator
 12-Sep-2007 12:07
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Tarun,

in your example case it is enough to use:
plainText (s)
to get the desired result

But I'm not sure, if this works for you.

Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 12-Sep-2007 13:45
User is offline View Users Profile Print this message


Tarun Inabathuni

Posts: 59
Joined: 18-Jan-2005

i guess that works to remove the RTF tags but i am trying to replace those tags with html tags..
thats where its getting tricky..

Any other ideas..
Report this to a Moderator Report this to a Moderator
 12-Sep-2007 13:46
User is offline View Users Profile Print this message


Tarun Inabathuni

Posts: 59
Joined: 18-Jan-2005

i guess that works to remove the RTF tags but i am trying to replace those tags with html tags..
thats where its getting tricky..

Any other ideas..
Report this to a Moderator Report this to a Moderator
 12-Sep-2007 13:46
User is offline View Users Profile Print this message


Tarun Inabathuni

Posts: 59
Joined: 18-Jan-2005

i guess that works to remove the RTF tags but i am trying to replace those tags with html tags..
thats where its getting tricky..

Any other ideas..
Report this to a Moderator Report this to a Moderator
 12-Sep-2007 13:46
User is offline View Users Profile Print this message


Tarun Inabathuni

Posts: 59
Joined: 18-Jan-2005

i guess that works to remove the RTF tags but i am trying to replace those tags with html tags..
thats where its getting tricky..

Any other ideas..
Report this to a Moderator Report this to a Moderator
 12-Sep-2007 14:36
User is offline View Users Profile Print this message


Kevin Murphy

Posts: 206
Joined: 15-Jul-2005

Tarun,

This isn't pretty, and it doesn't replace, but it IS a start:

-------------------------
Kevin Murphy
http://www.baselinesinc.com
The Requirements Management Experts
Report this to a Moderator Report this to a Moderator
 12-Sep-2007 14:52
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Tarun,

I answered only your question, you said nothing about replacing

If you get the text to convert from an attribute you could try to use:

string htmlText(Buffer&, Attr__, bool, bool, string, string, string, string) GetHTMLAttrWithPictures
string htmlText(Buffer&, Attr__, bool, bool, string, string) GetHTMLAttr

function to get the HTML directly?!
They are decribed in DXL refence manual (really ;-) )

Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.