![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: fHasShall Topic Summary: Created On: 15-Sep-2008 22:22 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Attached find the code I use for function 'fHasShall' and its overloaded cousins. It determines if text/buffer/object/attrRef contains 'shall'.
Since the purpose of this function is to look for the word 'shall' used in a normal sentence, I was wondering about my regular expression. I think I need to look for the WORD 'shall' not just the string 'shall'. Specifically, I want the following sentence to be excluded: Text with the word "shall" are requirements. Perhaps these 'shalls' must be preceeded by a space: Regexp cl_reHasShall = regexp " [sS][hH][aA][lL][lL]" Perhaps these 'shalls' must be followed by a space: Regexp cl_reHasShall = regexp "[sS][hH][aA][lL][lL] " What do you guys think? - Louie |
|
![]() |
|
![]() |
|
.
Edited: 16-Sep-2008 at 00:34 by ron lewis |
|
![]() |
|
![]() |
|
I go with the space, I found it gave fewer false calls.
The only one I usually get is where some one has ...shall: before a list. Of course you do the same for 'must' . |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
fHasShall
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.