Open core-ai-bot opened 3 years ago
Comment by redmunds Saturday Nov 08, 2014 at 17:28 GMT
Brackets uses Chrome v8 JavaScript RegExp engine. I usually use this reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
I'm not sure how to achieve what you want, but parens are a RegExp operator, so you'll need to escape the parens you want to match (i.e. \(
and \)
).
For example, ^.*\((?!\)).*$
matches any line that does have parens that are non-empty, but I'm not sure how to negate that.
Comment by peterflynn Friday Nov 21, 2014 at 19:44 GMT
Closing -- as designed. Brackets uses JS regular expressions for Find operations.
Comment by peterflynn Friday Nov 21, 2014 at 19:45 GMT
Here's a thread with more info on alternatives: http://stackoverflow.com/questions/6851921/negative-lookahead-regular-expression
Issue by jmichae3 Saturday Nov 08, 2014 at 15:51 GMT Originally opened as https://github.com/adobe/brackets/issues/9878
was doing (?!(.?)) or [a-zA-Z0-9 \t]+(?!:(.?)) which searches for lines of text which do not contain perens with text in them. the (?!) operator is what I am concerned about the lack of. along with it goes (?=) , (?<=), (?<!) for reference, see p.66 of o'reilly's Mastering Regular Expressions.