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

[Fun With Perl] Sitting next to an R/E God



>From: Derek Balling <dredd@megacity.org>
>>s/It's/$1, I say, $1/
> 
> I truly believe you wanted :
>
> s/(It's)/\1, I say, \1/
>
> There. Didn't you?
>
> Or did I miss something in the way regexes work? :)
>
> (I'll feel really stupid if I'm wrong, since I sit next to Jeffrey Friedl
> at work *grin*)
>

:]

Well, if you sit next to him, ask him why I
am getting the URL three times out of this
mess:


$_ = 'http://web.fccj.org/~wcjones/index.html';
s{http:(.*?)}    {<A HREF="$&">$_</A>}gs;


Thx,
-Sneex-  :]
_________________________________________________________________________
Bill Jones  | Data Security Specialist | http://www.fccj.org/cgi/mail?dss
FCCJ  |  501 W State St  |  Jacksonville, FL 32202  |  1 (904) 632-3089

==== 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