what would be the regular expression for a regular expression validator if a text box in my web page can only accept a blank value or charecter 'C'
Thanks
It would be this:
^C$
That indicates that only a single C character will be accepted. Leaving the field empty will also be acceptable, because RegEx validators do not flag empty fields as incorrect.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.