[xquery-talk] string manipulation

Florent Georges darkman_spam at yahoo.fr
Sun Feb 5 19:27:49 PST 2006


John Snelson wrote:

> replace("book/title/author", "/.*?$", "")

  Does this garantee to return "book/title" and not "book" ?  The
longuest match would win, doesn't it ?  Personally, I'd use the regexp
'/[^/]*$'.  BTW, why the '?' after the '*' ?

--drkm





















	

	
		
___________________________________________________________________________ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com


More information about the talk mailing list