Is it possible to match text outside quotation marks by using standard regex parser?
I have seen this answer, but it is done by using PCRE:
Can regex match all the words outside quotation marks?
This is not a pure solution because of using PERL. I know that it also can be solved by using programming language, but the idea is to use pure regex parser.
I have made something like this, but this is not working correctly
[^'"]*(?=(?:(['"])+(.*?1))|([^'"]*$))
Thank you in advance.
UPD1:The idea is to match any kind of text outside quotation marks, the solution must not depend on the input.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…