{
local $_ = 'D:\Program Files\Microsoft Visual
Studio\Common\IDE\IDE98\devenv.exe "%1"';
/^(.+?)\"/;
print $1;
}
Would that work? I'm just guessing here. Perl Newbie at best.
- Justin Rogers, CEO DigiTec Web Consultants
[COOP]DigiTec - Half-Life, Q3A, Unreal Tournament
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Perl-Win32-Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, May 05, 2000 10:56 AM
Subject: HOWTO Parse a string.
> I have a string that I cannot seem to see how to parse. I get it from the
> Win32 registry. It looks like:
>
> D:\Program Files\Microsoft Visual Studio\Common\IDE\IDE98\devenv.exe
> "%1"
>
> I would like to extract just the first part of the string (the path),
> dropping the argument ("%1"). Any ideas on how I can parse it?
>
> Kevin Burton
> [EMAIL PROTECTED]
>
> ---
> 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]