Hi,
I'm dealing with following problem:
In my original text I want to replace all the signs: '<tag>' with each time a difference value.
I give an example sentence:
'Yesterday I <tag> to the shop and <tag> myself some cd's'
I want to replace the first <tag> with the value 'WENT' and the second <tag> with the value 'BOUGHT'. [the options WENT and BOUGHT come out of a database and have unique names on which I can check.. (first/second/....)]
So far I can only replace the first one like this:
#REReplace("#list#", "<tag>", "#query.first#", "one"
#
The 'problem' with the REReplace is that I cannot check the 'position' of the different <tag> in a sentence. I cannot say: replace the first <tag> with query.first and when you find the second one replace it with query.second
ANY HELP MORE THAN WELCOME ;-)
Many thankx
bram
I'm dealing with following problem:
In my original text I want to replace all the signs: '<tag>' with each time a difference value.
I give an example sentence:
'Yesterday I <tag> to the shop and <tag> myself some cd's'
I want to replace the first <tag> with the value 'WENT' and the second <tag> with the value 'BOUGHT'. [the options WENT and BOUGHT come out of a database and have unique names on which I can check.. (first/second/....)]
So far I can only replace the first one like this:
#REReplace("#list#", "<tag>", "#query.first#", "one"
The 'problem' with the REReplace is that I cannot check the 'position' of the different <tag> in a sentence. I cannot say: replace the first <tag> with query.first and when you find the second one replace it with query.second
ANY HELP MORE THAN WELCOME ;-)
Many thankx
bram