#14 space problem using substitutions

open
nobody
None
5
2005-10-24
2005-10-24
Anonymous
No

I have a problem with the programE substitutions rules..
that do not seem to apply well.

.
- When i use the same substitution rules and category :
<substitute find=" .nl " replace=" dot nl"/>
<substitute find=".nl " replace=" dot nl"/>
<substitute find=".nl" replace=" dot nl"/>
(( in programD i do not use this three... but for testing
on programE i just tried it even knowing it would not
make a difference really))
<substitute find="@" replace=" at "/>

and a sample pattern:
<category>
<pattern>MY EMAIL IS * AT * DOT NL</pattern>
<template><think><set name="email"><star
index="1"/>@<star index="2"/>.nl</set></think>
Thanks!

</template>
</category>

In programD it perfectly matches input: mijn emailadres
is iemand@cartesians.nl
with the pattern above.
The subs. rules split the emailadres perfectly.

But in programE whatever i do it does not... in gmache
and bot output it stays:
mijn emailadres is sssatcartesiansdot nl

The only space it makes is at the end between dot and
nl

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks