I need a regular expression so that when searching for ">" more.
, eg
for this line I will return - "if x> 2"
and for this line I will get false " <template>"
I tried this - [^<][a-zA-Z0-9_]+[a-zA-Z0-9_ ]*>
as a regular expression but the problem is that it finds a substring that matches for example, in <template>it finds template>and returns true.
thank.
EDIT:
I use this regex [^<a-zA-Z0-9_][a-zA-Z0-9_]+[ ]*>, tried it all over the source code of firefox 1.0 and it seems to work fine.
yossi source
share