I'm trying to make a regular expression that matches with text not wrapped of XHTML paragraph tags. For example, in abcde it must match all the text, in abcd<p>efgh</p> only abcd, and in <p>abcde</p> it must match nothing.
I've been thinking about it and I only could create this expression:
/((?<!<p>).+(?!<\/p>))/
But it doesn't work, because it match every text even it is wrapped by paragraph tags...
Anybody could help me?? Thanks a lot for your time.
