- June 4, 2013 at 6:57 am #4670
Hi guys, I have a question for the regular expression experts:
Within a textarea input: How do I prevent a user from submitting a specific text?? I guess the only way to do this is the regular expression filter.
This here does not work
^(?!Hi guys, this is the prefilled text. The user has not changed it.$)
Any ideas? I would be really thankful for a tip
MikeyJune 4, 2013 at 10:20 am #4675June 4, 2013 at 12:31 pm #4677
thanks for the hint.
What do I have to do to make it work with in the text?
So that it would filter a text like this:
this is the prefilled text.
The user has not changed it
June 5, 2013 at 10:29 am #4687June 5, 2013 at 2:04 pm #4695
for some reason I can’t get this to work.
1) Multi-line textbox with the exact text from above
3) Validation “Regex” Filter with your latest regex
The filter does not trigger at all… there is no error message shown. Not if I leave the default text and not if I enter a different text..
Any ideas? Can you reproduce this?June 5, 2013 at 5:49 pm #4703June 18, 2013 at 6:36 am #4883
yes, you are right: the problem where the blanks!
The problem is that I’d actually like to have a blank at the end of a line.
How do I make the regex aware of a blank (at the end of a line)?
Is there a special regex-character for it?
MikeyJune 18, 2013 at 6:40 am #4884
Hi Ally, Hi guy,s
I just answered the previous question to myself:
\sis the regex-code for a whitespace (=blank). 🙂
- You must be logged in to reply to this topic.