sorry for my bad english
My example text is html but the test must be applicable to any context
I have this regex : "<\b[D-d][I-i][V-v]\b([^>]*)>"
I want to complete it to exclude all > that are between quotes but I don't know how to do it
see my exemple below :
<div badAttribute="who put a > here?" class="exemple"> [....] </div>
the expected match is
<div badAttribute="who put a > here?" class="exemple">
[edit]
Another exemple : https://regex101.com/r/BQUENO/1
I have 2 keywords : start keyword '001' and end keyword '@' I want "all between 001 and @ but ignore 001 and @ that are between quotes "
I started this regex to exclude @ and all between quotes but it doesn't work fine
001("[^"]*")*([^@]*)*@
in my mind
("[^"]*")*
means "all between quotes (if exists)" but it doesn't work
exemple string
001exemple@001@001Semper exitialis "fkjfk"cum subsidia ductor notissimus subsidia et ductor cui@
001Annonas et "@"et contumaciter conspectum@
001Quo amicissimos ad uxoriae certamen pecuniae tamen ="@" dirimi "klkj @"contentione nullam.@
can you explain to me how to do it?