James Keeline wrote:
> --- Wade Smart <[EMAIL PROTECTED]> wrote:
>
>> 01072008 1955 GMT-6
>>
>> if ($inrec =~ m|^(\%\S+\%)|) {
>>
>> Im trying to figure out what this is looking for.
>> The caret is saying the beginning of a zero-line file.
>>
>> Im not good with Reg expressions.
>>
>> Wade
>
> This looks like a Perl implementation of regular expressions (=~).
>
> The "m" means "match". In this regex the pipe character (|) is used to define
> the beginning and end of the pattern. The \% means the percent character
> literally. The \S means non-space characters. The plus means one or more of
> the pattern at the left.
>
> James
01072008 2006 GMT-6
Thanks James. This code Im working to fix has some perl mixed with php
and I have zero perl experience so Im just kinda reading through trying
to figure out if this can be simplified.
Thanks.
Wade