![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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... |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
How to replace a character in a string....
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.