RegExp question: match within another match 
Author Message
 RegExp question: match within another match

How can I perfom the the checkup of RegExpChild="123[lk]" is inside the
RegExpMother="123[lkm]" boundaries ?

/Johan Johansson



Sat, 31 Jan 2004 04:44:35 GMT  
 RegExp question: match within another match

Quote:
> How can I perfom the the checkup of RegExpChild="123[lk]" is inside the
> RegExpMother="123[lkm]" boundaries ?

I'm not entirely sure I know what you mean, but it sounds like you want to
do some secondary processing on the results from your regular expression
search.

The script engine version 5.5 introduced the collection of regular
expression submatch strings. I think that is what you are looking for.

Read about the 5.5 engine at http://msdn.microsoft.com/scripting/

Best regards
Johnny Nielsen



Sat, 31 Jan 2004 08:04:26 GMT  
 RegExp question: match within another match

I wantn to create a superUser which controls other users matching capabilities.

If somebody gives a user right to attest 123[45] i would like to control this within the boundaries of that superUser own boundaries which could look like 123\d

The superUser has rights to give out these Attestnumbers:
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239

And therefore he gives in his turn a user right to use
1234
1235

when he is reg the RegExp 123[45] to the user

My problem lies in that a whant to be shure that the users right s are within the superUsers limits.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Sat, 31 Jan 2004 22:03:20 GMT  
 RegExp question: match within another match
Quote:
> I wantn to create a superUser which controls other users matching
capabilities.

> If somebody gives a user right to attest 123[45] i would like to control

this within the boundaries of that superUser own boundaries which could look
like 123\d

I think I understand what you mean, but I can't see what this has to do with
regular expressions.

If I'm not mistaken you want to control some kind of 'license' numbers a
given application can hand out. That kind of control logic has to be done by
your program - VBScript offers no special function for it.

Best regards
Johnny Nielsen



Sun, 01 Feb 2004 04:49:16 GMT  
 RegExp question: match within another match
OK I see thansk for you taking your time....it always help to discuss matters with someone else.

/Johan

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Sun, 01 Feb 2004 05:07:20 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Seek Nearest Match if exact match not found ?

2. Seek Nearest Match if exact match not found ?

3. RegExp Object and match.value be entire line

4. RegExp Pattern for Matching a URL?

5. RegExp Pattern for Matching a URL?

6. RegExp pattern matching

7. RegExp pattern-matching problem

8. RegExp to match complete words

9. RegExp: how NOT to match string??

10. RegExp whitespace matching

11. RegExp - Match ANY repeating pattern

12. RegExp to match complete words

 

 
Powered by phpBB® Forum Software