![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: String Function Topic Summary: Created On: 29-Jan-2007 13:06 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: There is a function 'name(Module m)' that returns the unqualified name of a module. If you need to start from a string then you could use a regular expression, e.g.: string s = "/Project/Folder/ModuleName" if matches("[^/]*$", s) then print s[match 0] | |
![]() |
|
Hi I feel that this must be simple, but I am struggling. I need to extract the Module name (the text up to the latter "/" from the full path string of a module) i.e. /Project/Folder/ModuleName |
|
![]() |
|
![]() |
|
There is a function 'name(Module m)' that returns the unqualified name of a module. If you need to start from a string then you could use a regular expression, e.g.:
string s = "/Project/Folder/ModuleName" if matches("[^/]*$", s) then print s[match 0] |
|
![]() |
|
![]() |
|
Thanks so much, thats done it!
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
String Function
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.