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

Re: [FWP] A tiny bit of fun with a regex



On Fri, Aug 13, 1999 at 04:05:53PM -0500, Brand Hilton wrote:
>
> > >   print "found it\n" if /\d+
> > >                          \/
> > >                          \d+  # find something of the pattern y/x
> > >                         /x
> 
> I ran across it when I had the phrase "and/or" in a regex comment. 
> I thought maybe I could hide it a little bit and make it more
> challenging to find.  Apparently not :-)

What if you change the delimiters:

  m{
    \d+
    /
    \d+  # find something of the pattern y/x
  }x


-- 
John Porter


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe