Silverfox wrote:
>
> Hi all,
Hello,
> I'm trying to figure out how can I check if a variable matches the
> first 5 digits of the line below without removing anything from the line.
>
> 13384 R 20020920 N Gatekeeper, The
In perl, if a variable looks like a number then perl will treat it as a
nu
Silverfox wrote:
> Hi all, I'm trying to figure out how can I check if a variable matches the
> first 5 digits of the line below without removing anything from the line.
>
> 13384 R 20020920 N Gatekeeper, The
if you are only concern about digits in front of the line, you don't even
need a regex
In a message dated 3/9/2004 3:08:10 PM Eastern Standard Time,
[EMAIL PROTECTED] writes:
>Careful, I believe we want the above capture anchored to the start of
>the line, though I prefer the direct match approach...
You're right about the anchor, but direct match wouldn't be the preferable
method
> In a message dated 3/9/2004 2:43:16 PM Eastern Standard Time,
> [EMAIL PROTECTED] writes:
> >Hi all, I'm trying to figure out how can I check if a variable
matches the
> >first 5 digits of the line below without removing anything from the
line.
> >
> >13384 R 20020920 N Gatekeeper, The
> >
> >
> Hi all, I'm trying to figure out how can I check if a variable matches
the
> first 5 digits of the line below without removing anything from the line.
>
> 13384 R 20020920 N Gatekeeper, The
>
> Silver Fox
>
I'm a bit confused, are you trying to test the line against a variable
or a variable
In a message dated 3/9/2004 2:43:16 PM Eastern Standard Time,
[EMAIL PROTECTED] writes:
>Hi all, I'm trying to figure out how can I check if a variable matches the
>first 5 digits of the line below without removing anything from the line.
>
>13384 R 20020920 N Gatekeeper, The
>
>Silver Fox
use