If I try with <color:red>\"[^\"]*(<sym-auto>|<sym>)[^(<sym-auto>|<sym>)]*<match>[^(</sym-auto>|</sym>)]*(</sym-auto>|</sym>)[^\"]*\"</color>It seems like it should work, but whenever i put (<sym-auto>) in negate like this [^(<sym-auto>)] , it seems regex reads it as a range, and I get an error. A normal \ escape doesn't seem to work, so how do I do this?
So the main problem is that if i write something like <tag>.*<match>.*</tag> , regex will read everything between <tag> and line break as .* (or something like that), and the expression won't be what I intended it to.
Is there a way to put a "wildcard" with an "until" statement, that sais do(.*).until_hits(</tag>)
I'm not sure if the last thing I wrote made any sense to you, but is there a way formulate the breaking of a wildcard pattern?
Edit: How will this work? regex = (?<words)apple(?words)
and this: regex = (?<words).*apple.*(?words)
and this: regex = (words)(?<!words).*apple.*(?!words)(words)
And if I'm working with tags, do i write them (?<!\<tag>), then?