![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: string function Topic Summary: need to replace string Created On: 6-Sep-2007 17:41 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Paul is right. But in addition, the regexp so far only extracts the complete string within the brackets, not the jump/fence part. You can get it with a second regexp searching for the closing bracket (see attached code), Peter | |
![]() |
|
{\lazy\fox jumps}{\lazy\fox fence}
I am trying to extract "jumps" then "fence" i was trying regexp "\{\\lazy\\fox (.*)\}" but it does not work any help appreciated.. Regards Tarun |
|
![]() |
|
![]() |
|
Because the Regexp is being parsed twice (once to create the regexp and once to check the string against it) you need to escape the escape chars:
regexp "\\{\\\\lazy\\\\fox (.*)\\}" ... I think. Not sure about the \\{ and \\} ... Paul. ------------------------- Paul dot Tiplady at TRW dot com TRW Automotive |
|
![]() |
|
![]() |
|
Paul is right. But in addition, the regexp so far only extracts the complete string within the brackets, not the jump/fence part. You can get it with a second regexp searching for the closing bracket (see attached code),
Peter Edited: 7-Sep-2007 at 09:09 by Peter Albert |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
string function
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.