[Omaha.pm] tweak

Jay Hannah jay at jays.net
Thu Apr 27 03:09:45 PDT 2006


Andy Lester wrote:
>     foreach ($q->param) {
>         if (/^view__Record__(.+)/) {
>             $pageid = $1;
>             last;
>         }
>     }
> 
> This last one I think is the clearest, because what you're saying is
> "match view__Record__ followed by something else, and I want to keep the
> something else".

Wow, that *is* cool. Thanks!

j



More information about the Omaha-pm mailing list