xsl-list
[Top] [All Lists]

[xsl] string manipulation - retreiving a directory name from a path

2009-02-23 07:45:50

I need to extract the string that appears between the first '/' and the second 
'/' from 
a string that takes the form of:  '/home/dir1/dir2/file.html'.
 
Can anyone suggest a way to do this, maybe utilising a regular expression, 
other than substring-before(substring-after($string, '/') '/')
 
Thanks
_________________________________________________________________
Windows Live Messenger just got better .Video display pics, contact updates & 
more.
http://www.download.live.com/messenger
--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>