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: How to replace a character in a string....
Topic Summary:
Created On: 28-Aug-2007 15:29
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.
 28-Aug-2007 15:29
User is offline View Users Profile Print this message


Subrojyoti Sengupta

Posts: 52
Joined: 18-Nov-2005

Hi,
   Can anyone give me a suggestion on this

I want to replace a character with null what i exactly mean is

if the text is "\abc how r u \hhhh\ww"

it should be now "abc how r u hhhhww"    just delete \ and replace it with blank...

Report this to a Moderator Report this to a Moderator
 28-Aug-2007 15:42
User is offline View Users Profile Print this message


Paul Tiplady

Posts: 176
Joined: 28-Oct-2003

The key concept is Regular Expressions - try the DOORS scripting manual.

Off the top of my head (but it works!):

-------------------------


Paul dot Tiplady at TRW dot com
TRW Automotive
Report this to a Moderator Report this to a Moderator
 28-Aug-2007 21:15
User is offline View Users Profile Print this message


Andrew Wallen

Posts: 18
Joined: 23-Sep-2006

If you don't feel like working with Regular expressions, here are a couple of string functions to help you out: for your example you could throw these at the top of your file or stick them in an include, then call: replace(StringIn, "\\", "");

Edited: 28-Aug-2007 at 21:16 by Andrew Wallen
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.