On Jul 1, 2004, at 7:59 AM, C. Hatton Humphrey wrote:
> If a text input box is found, replace it with the text contained in
> the "value" attribute.
> If a checkbox, radio, hidden or password input box is found, remove
> it.
> If a select is found, replace it with the display of the selected
> option.
> If a textarea is found, replace it with the conents of the textarea.
>
> I know that I can do this by using a condition loop and a lot of
> searching but is there a better way that it can be done?
Regexps are a good choice. A good regexp engine (CFMX's or Java's?)
can easily outperform any conditionals you could write.
Best to not get too fancy -- just write 4 successive regexps that
process the text
HTH
Dick
"In times like these, it helps to recall that
there have always been times like these."
- Paul Harvey -
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- Regex or ??? C. Hatton Humphrey
- Re: Regex or ??? Dick Applebaum
- Re: Regex or ??? C. Hatton Humphrey
- Re: Regex or ??? Doug James
- Re: Regex or ??? Claude Schneegans
- Re: Regex or ??? C. Hatton Humphrey
- Re: Regex or ??? Claude Schneegans