If you do a
@sessuses =
($line=~m/.[^']\=\s*(Session|Form|QueryString|Application|ServerVariables)\(
\"(.+?)\"\)/gi);
then your expression should be saved in $1
J.
-----Original Message-----
From: Justin Rogers [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 26, 2000 11:49 PM
To: Perl-Win32-Users Mailing List
Subject: Regarding Regular Expressions...
Hello, I have a pattern that matches as follows:
@sessuses = ($line =~ m/.[^']\=\s*Session;
This matches for every instance where I use a Session Variable
in some code and does it quite well. This is an ASP processing
script for documentation purposes (BTW)... However, to match
other types of variables or objects I use the same syntax. So
my question is how do I:
1. Match using other items for instance:
(Session|Form|QueryString|Application|ServerVariables)
I take it this will work. However, I need to know which type
got matched. SO,
2. If I insert the above string for Session in the above example
how do I know which item it matched for? Can I get this
information or do I need to use 5 seperate Regular Expressions?
- Justin Rogers, CEO DigiTec Web Consultants
[COOP]DigiTec - Half-Life, Q3A, Unreal Tournament
---
You are currently subscribed to perl-win32-users as:
[EMAIL PROTECTED]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]