![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: read one line at a time Topic Summary: read one line at a time Created On: 26-Oct-2004 15:29 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: // Try the following example /* examples of regular expression DXL*/ Regexp line = regexp ".*" // matches any character except newline string txt1 = "UC876 while (!null txt1 && line txt1) { print txt1[match 0] "\n" txt1 = txt1[end 0 + 2:] // move past newline } | |
![]() |
|
Hello,
I want to be able to read one line at a time from a string that was created by a dxl attribute that was originally created as a dxl column and was converted. the string looks like: UC876 UC654 UC324 (actually identifiers one after the other) is there a simple way to read one line a time? Thanks. Asaf |
|
![]() |
|
![]() |
|
// Try the following example /* examples of regular expression DXL*/ Regexp line = regexp ".*" // matches any character except newline string txt1 = "UC876 while (!null txt1 && line txt1) { print txt1[match 0] "\n" txt1 = txt1[end 0 + 2:] // move past newline } |
|
![]() |
|
![]() |
|
Thank you!
That did the trick |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
read one line at a time
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.