Regex: Everything but TAGs

hortontokyo

New Member
I try do get all strings/text except html tags. ex. \[code\]<html><head><title>test</title></head><body><p>hi there</p></body></html> -->"test hi there"\[/code\]First I tried to make a regular expression that finds all html tags: \[code\](<.*?>)\[/code\] . After that I tried to invert the regexp \[code\]((?!<.*?>).)*\[/code\] - but this expression doesn't work :( Can anyone help me?
 
Back
Top