tokenize() is working.  Thanks all!

gary

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of G. Ken Holman
Sent: Friday, June 03, 2011 12:16 PM
To: General MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] document name function

At 2011-06-03 12:11 -0400, you wrote:
>The regex solution worked great!

I'm glad!  But I like Damon's suggestion of using tokenize() better:

At 2011-06-03 08:08 -0700, Damon Feldman wrote:
>If you want the last bit of the URI after the final "/" you can use
>
>tokenize("/a/b/c/d.x", "/")[last()]

I wish I had thought of it in my haste to get you an answer.  I'll 
try not to rush next time.

. . . . . . . . . . Ken

--
Contact us for world-wide XML consulting & instructor-led training
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/q/
G. Ken Holman                 mailto:[email protected]
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to