I need a regular expression so that if I search for ">" greater than.
for example
for this string I will get true - "if x> 2"
and for this string I will get false "<template>
"
I have tried this - [^<][a-zA-Z0-9_]+[a-zA-Z0-9_ ]*>
as the regular expression
but the problem is that it finds a substring that match
for example in <template>
it finds template>
and return true.
thanks.
EDIT:
I am using this regular expression [^<a-zA-Z0-9_][a-zA-Z0-9_]+[ ]*>
tried it over the entire firefox 1.0 source code and it seem to be working fine.