Obtaining extension

Post Reply
pete.smith
Posts: 73
Joined: Tue May 17, 2005 2:08 pm

Obtaining extension

Post by pete.smith »

We would like to do two things:

1.) Put a file type icon next to each resuls.
2.) Provide the ability to search only for doc, xls, etc.

What rex would I use in the <setupresult> macro to get this off the path?

Also, would I just put something int he uq parameter to say, do %.doc% ?

Pete
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Obtaining extension

Post by mark »

1.
<urlutil split $Url path>
<rex "\.\P=[\alpha]{1,5}>>=" $ret>
<$ext=$ret>

2. yes
Post Reply