When attempting input validation in a textarea, I encountered the following issue:
const re= /^[0-9A-Za-zÀ-ÿ\s\’\'\:\.\-\,\!\[\]\(\)\@\&\?]+?$/im;
re.test(control.value)
During the first test:
+
The result was false as expected.
However, during the second test:
+
1234
The test() returned true, even though it should have still been false due to the presence of an invalid character and the use of ^...$.
If you can shed light on this issue, it would be greatly appreciated.
Thanks!