Represents any character except the ones specified after the ^ Represents any characters within the range of characters specified Represents any of the characters inside the brackets Represents a character that is normally a special character Matches any non word character (anything not matched by \w) Word characters in the ASCII range are generally alphanumeric, and characters whose value is greater than 127 are also considered word characters." Typically this is letters, numbers, and underscores, but also includes some other characters you might not cosinder word characters. According to the release notes: "A word is any run of non-word-break characters bounded by word breaks. Matches any non whitespace character (anything not matched by \s) Matches any whitespace character (space, tab, line break, newline, form feed) Will match anything except 0, 1, 2, 3, 4, 5, 6, 7, 8, or 9 (anything not matched by \d)
Note: Only present in BBEdit Pro 5.1 and Lite 4.6 or greater Represents the character typed, with the exception of the special characters defined below Characters to Use in Replacement PatternsĬharacters to Use in Search Patterns Character Typed.Representing Multiple Character Patterns in Searches.
BBEdit discusses how to use grep in the Apple Guide (and in the manual), but it may be a little short of an explanation for those unfamilar with it, so here's my explanation. If you don't know how to use it, it's time you learned, because it is immensely useful.
The version of grep that is used in BBEdit is a very basic version, similar to UNIX's egrep.
Grep is perhaps one of the most powerful and least understood features of BBEdit. BBEdit Grep Tutorial BBEdit Grep Tutorial