[oak perl] file::find vs. learning recursive subs

Jon Seidel, CMC jseidel at edpci.com
Fri Feb 18 09:01:42 PST 2005


Sandy...

I'm not positive, but I think that the "(\w){2}" or "\w\w" construct will
need some work... you will need something to describe the word boundary or
separation between the two words or else it's just one word... e.g.,
"\w\b\w" or else "\w\W\w" (the \b is word boundary and the \W is a
non-word. Even this may not be enough... I'm not a regular expression guru
:)

Good luck, and keep up the good work...jon

> Tonight just working on refining my search matching pattern
> is making me happy.  "s/%2f/_/" is not going to be enough,
> since sometimes the "%" is followed by completely different
> characters (other than "2f"); so my redraft is going to
> be "s/%(\w){2}/_/" or "s/%\w\w/_/" or maybe even something
> more elegant (hope, hope--have to test these).  And of course
> I'll be adding the "g" at the end for multiple instances.
>  Just the beginning, but fun!
>
> Thanks, all.
>
> --Sandy Santra
>
>
> _______________________________________________
> Oakland mailing list
> Oakland at pm.org
> http://mail.pm.org/mailman/listinfo/oakland
>



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

      Connecting Business and Technology

Jon Seidel, CMC                   +1-510-530-6314
EDP Consulting, Inc.                www.edpci.com

CMC (Certified Management Consultant) is a certification mark awarded by
the Institute of Management Consultants USA and represents evidence of the
highest standards of consulting and adherence to the ethical canons of the
profession. Less than 1% of all consultants have achieved this level of
performance. See www.imcusa.org/hireacmc.acgi.



More information about the Oakland mailing list