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

[FWP] Is this fun? What's going on?



Is this fun? What's going on?
[ Programmer error :)  ]

I was thinking this all morning:

s{(\d+\.\d+)}  {<A HREF="$1">$1</A>}g;


But I keep trying to get this:

s{(d+\.d+)}  {<A HREF="$1">$1</A>}gs;

to work...  Oops!


On a related note -

s{(\d+\.\d+)}  {<A HREF="$1">$1</A>}g;

What can I change to also match an optional
third or fourth  (  #.#.#  or #.#.#.# ) section number???

I am looking at various forms of -
s{(\d+\.\d+){1}(\.\d+)?(\.\d+)?}  {<A HREF="$1">$1</A>}g;

But that actually truncates the results...

???
-Sneex-  :]

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