[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

SV: SV: [FWP] What is regex



On Thu, 19 Jun 1999, Bill Jones wrote:
>>From: patrik.grip-jansson@vv.se
>>
>> stuff() if $data=~m/^JAPH/;
>>
>Why use ^ to match at 'start of string' ?

Your pseudo C code had a "substr(data,0,4)", which I assumed extracted the
first four character from a string. Hence the ^ in the perl expression...


==== Want to unsubscribe from this list? (Don't you love us anymore?)
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org