2
In an application Asp.Net WebForms
, have a TextBox
which I need to validate if it contains any excerpts where there are <
followed by any character except blank space.
For example:
Nesse texto pode existir < com espaço.
Mas não pode <. <+ <? </ <\ <A <0 <*
In this case, Regex should find eight results = <.
, <+
, <?
, </
, <\
, <A
, <0
and <*
and not identify <
(which contains space).
Where A
represents any alphanumeric character and 0
any number.
This Regex will be used in the event onchange()
of the HTML page via Javascript and on TextChanged()
on the Asp.Net.
Thanks for the help!
It’s to detect html?
– Artur Trapp
It’s very similar, but the purpose is not exactly this... I found validations for HTML, but I couldn’t adapt for the use I need...
– w-all