SPUG: Self referecing URL

Matt Tucker tuck at whistlingfish.net
Sat Sep 23 15:31:13 CDT 2000


-- marlin <marlingreene at mindspring.com> spake thusly:

> Problem was escaping the closing <\/A
>
> also changed the CAT.* to [a-z][a-z]\d\d\d\d since the catalog number
> always has a pattern like:  ch9822 -- that is, 2 characters and 4
> digits, and this eliminates the space being part of \1.
>
> This works as expected.
>
> Is there a better way to specify to match 4 digits?

You can do \d{4}, but the other way is a bit more efficient.




 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/





More information about the spug-list mailing list