Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
validation-regex syntax for a replace
System
I need to do a validation-regex for an inline database call I'll using - so that each time I see a & it gets replaced with a & - what should the sytanx be - I tried something like:
validation-regex =".* [&], [&]"
with little success
Find more posts tagged with
Comments
Migrateduser
Where is your validation-regex? In a DCT item? If so, 2 things: 1) this Q would be better posted to the templating forum, and 2) I believe (unless deep TST gurus know otherwise) that validation-regexes only do matching, not replacement.
You could do replacement (in TST 5.5.2) with formAPI code.
Another thing to consider is that you don't want to substitute ampersands (&) if they are already followed by "amp;".
bw
Bob Walden [bob.walden@interwoven.com]
Interwoven Education Group
IM: Yahoo, MSN bob_walden
Migrateduser
I'm trying to do the validation in my DCT it an item -
In my case my query is returning values that have & - and I
need to replace them so that in a DCT - I don't get an error -
Maybe I'll just trying doing the replace in my query!!
Thanks -
Migrateduser
Got this to work as well - doing the replace right in the actual ipl script
Thanks