grep/regex search for X but not Y?
BBEdit has an excellent "multi-file search" feature that can search with Grep. I have some 开发者_如何学JAVAPHP code in need of cleaning up. For example, I'd like to find all instances of ...
FROM table
... but not ...
FROM `table`
In other words, I want find "FROM xyz" where the first character of xyz is NOT the carat symbol.
Is this doable?
Try this regex:
/FROM \b\w+\b/
精彩评论