![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Help with another RegExp function Topic Summary: Created On: 30-Oct-2003 16:02 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Louie- Here you go. -Dennis | |
![]() |
|
I'm brain dead on Regular Expressions. Will someone please write the attached function for me.
Thanks. Louie |
|
![]() |
|
![]() |
|
Louie-
Here you go. -Dennis |
|
![]() |
|
![]() |
|
Like Count Dracula said: "Fang you very much".
- Louie |
|
![]() |
|
![]() |
|
// make sure (somehow) that modPrefix does not contain any of the following characters: "()[]-\"
I don't think that's a realistic restraint. Forgive my ignorance, but if I scanned the modPrefix and substituted each occrrance of the above by inserting a new slash charcter in modPrefix before calling this function (e.g. change "[" to "\["), would that bypass this restraint? - Louie |
|
![]() |
|
![]() |
|
I believe that substituting "[" with "\[" would bypass that restraint, but you should test the functionality before releasing the code into the wild. You may need to modify your code to insert "\\" before any of the listed characters since the backslash itself must be escaped in order for it to be not interpreted.
The set of characters I previously listed is probably incomplete. You may also need to include standard RegExp wildcards like "?*.^$+". As always, test test test! -Dennis |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Help with another RegExp function
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.