xsl-list
[Top] [All Lists]

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

2012-09-19 06:28:29
Thank you, it was the quotes around 	 that I was missing.

On Wed, Sep 19, 2012 at 12:25 PM, David Carlisle 
<davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:
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.
________________________________________________________________________

--~------------------------------------------------------------------
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>
--~--


--~------------------------------------------------------------------
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>