>>>>> "S" == Stefan Mueller <flcl / gmx.net> writes:

S> I'm having some big problems with Pattern Matching of Regex.

 Like have said Dave Thomas, your regexp is wrong but

S> I don't want the Regex to magically match a String it can't match, but

 You have (?>...) for this.

S> would like to  prevent it from trying forever, as I'm doing this with a
S> big html file in a String.

 Sometimes regexp are not the *right* tool and you are in this case. Never
 try to match an HTML file with a regexp, because HTML is *really* complex.

 It's best to use a specialized parser for this.


Guy Decoux