>- see footer for list info -<
Hey Chaps,
Hopefully there it a regex guru still alive on this list as I suck at them J
I have the following, the regex allows me to take the host name and use it
in the path name. However I also need to check if www. Exists anf if it
does, strip it out and use the resulting string with the www. Removed.
I only want to remove the www. Any other sub domain is fine.
<host regexp="(.+)">
<host-name>${host.regexp[1]}</host-name>
<root-directory>D:/wwwroot/${host.regexp[1]}</root-directory>
<web-app id="/" root-directory="wwwroot">
<!-- enable/disable directory browsing -->
<servlet servlet-name="directory"
servlet-class="com.caucho.servlets.DirectoryServlet"/>
</web-app>
</host>
--
Russ
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<