[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] anyone has template to do preg_replace - like replacement?


Subject: Re: [xsl] anyone has template to do preg_replace - like replacement?
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Tue, 12 May 2009 19:30:35 +0200

Dmitri Snytkine wrote:
Does anyone have a template that would replace the underscore char with a space?

I need to convert strings like 'hello_world' to 'hello world'
and position of underscore is not the same.

translate('hello_world', '_', ' ')


--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/


Current Thread