
December 2nd, 2008, 09:34 PM
|
 |
Contributing User
|
|
Join Date: Aug 2002
Location: Queensland, Australia
|
|
Quote: | Originally Posted by prometheuzz Well, the negation can be handled in the programming language you're writing this in. |
I should have stressed I'm not using this in a programming language. I'm using it in a "Find" dialog in NetBeans.
Quote: But, this will match text outside of a tag:
Code:
[^<>]+(?=[^>]*(?:<|$))
|
It does except it also matches spaces. It's really only [a-zA-Z] that needs to be found. I feel like I've already trouble you too much, but if you're compelled to figure out another regex I would truely appreciate it. In the mean time this expression will give me something to examine and learn from.
|