Re: [xsl] replacing tabs and the like in a string

Subject: Re: [xsl] replacing tabs and the like in a string
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 19 Sep 2012 12:25:19 +0100
On 19/09/2012 12:04, Ihe Onwuka wrote:
I tried the obvious replace("abc def", &#x9;'\\t') (the space is a
tab)  and variations thereof (declaring a variable for the tab) and
I get "The regular expression in replace() must not be one that
matches a zero-length string"

If you have a solution to hand I'd be grateful

as posted it would be a syntax error as you only have two arguments to replace, it should be



replace("abc def", '&#x9;', '\\t')


To get the error that you showed you must have had a regex that matched "" usually because it has a * in it.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________


Current Thread