I am using the following regexp for XSS attack validation. Its checking <..> </>
datas correctly. But when I type single character at first its not allowing any single character (eg: if I type 'a' its not allowing). Can anyone help me on this?
/^(|\/|[^\/>][^>]+|\/[^>][^>]+)$/