Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
M. Magistri #1
help with ER...
Hi everyone!
I need help with ER Expressions in JavaScript. I would like to know how to
match text in a textarea object.
I use the ollowing ER but it doesn't funtion:
/^[a-zA-Z]([a-zA-Z0-9\.\-\'\ \n\!]){2,500}/
I also tried to use '$' and 'gm' commands but it doesn't function.
What do i have to do?
Thank You!
Massimiliano
M. Magistri Guest
-
Troyan #2
Re: help with ER...
It seems correct to me... But "\n" will function as a simples "n",
not as a line break, is it what you want? JavaScript ER's don't have
suport for posix and "\character", you need to use the really
character.
You can use something like:
new RegExp("^[a-zA-Z][\"+ unescape("%13") +"....]");
I can't affirm that it works, but is a alternative...
Sorry for the errors, my English is poor...
--
- Rio de Janeiro, Brasil
- Troyan <dnunes[at]email[dot]com>
Troyan Guest



Reply With Quote

