this is a german Web-Mirror of MHONARC.ORG powered by Domainunion AG

[Top] [All Lists]

[xsl] one for the regex gods

2013-07-08 18:05:37
I have this regex

<!-- remove commas embedded in amounts-->
<!-- also replace multiple hyphens with asterisks -->
<xsl:variable name="line"

operating on

Cash from Operatings/ Financial Expenses            372.43
4,889.48      -2,070.08         154.8

the role of the inner replace is to replace multiple hypens with
asterisks. In the above there are no multiple hypens so it should not
be effective.

the outer replace is meant to remove embedded commas in the field
however I noticed it is also causing me to lose the decimal point
which I of course would like to retain.

Upon diagnosis I tried

<xsl:variable name="line"


<xsl:variable name="line"

various ways of slipping a decimal point into the captured variable
after the \d{3}

Neither had any effect.

So I thought I'd come ask.

XSL-List info and archive:
To unsubscribe, go to:
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>

<Prev in Thread] Current Thread [Next in Thread>