Page 1 of 1

Obtaining extension

Posted: Thu Sep 29, 2005 2:28 pm
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

Obtaining extension

Posted: Thu Sep 29, 2005 3:12 pm
by mark
1.
<urlutil split $Url path>
<rex "\.\P=[\alpha]{1,5}>>=" $ret>
<$ext=$ret>

2. yes