![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Regexp and \. Topic Summary: Created On: 29-Oct-2004 13:09 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: I think you need: Regexp thing = regexp "\\." The backslash itself has to be escaped, and you need the regexp function to turn the string into a regexp. | |
![]() |
|
So I was trying to match against a period in a regular expression. Normally (like in perl) you escape the character with a backslash. So:
Regexp thing = "\." But this doesn't seem to work in DXL even though the manual uses it as an example of what the \ (escape) character is used for. I can use a set operator, [.] to make it work, so I'm not blocked from doing work. Is this a bug? Should I log it? |
|
![]() |
|
![]() |
|
I think you need:
Regexp thing = regexp "\\." The backslash itself has to be escaped, and you need the regexp function to turn the string into a regexp. |
|
![]() |
|
![]() |
|
Gah! I can't believe I forgot that. Thanks Paul for pointing that out! I was just following the fine manual...
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Regexp and \.
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.