Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Regular expression reference for BBEdit Apps
If you use BBEdit to work with text files, you're certainly aware of its powerful regular expression feature for searching and replacing text. Based on the PCRE (Perl Compatible Regular Expressions) engine, the BBEdit regex language can find and replace pretty much anything.

GitHub user ccstone has published a BBEdit Regular Expression Cheat Sheet, which shows all the standard regex meta-characters, those used for non-visible characters (such as tabs and returns), and classes (such as digits, lower-case letters or alphanumeric characters).

If you use BBEdit to find and replace text, and especially if you're not familiar with using regular expressions, you should bookmark this page.
    •    
  • Currently 2.71 / 5
  You rated: 1 / 5 (7 votes cast)
 
[4,324 views]  

Regular expression reference for BBEdit | 3 comments | Create New Account
Click here to return to the 'Regular expression reference for BBEdit ' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Regular expression reference for BBEdit
Authored by: lar3ry on Apr 19, '13 11:15:31AM
Since it's "Perl Compatible Regular Expressions," then you just need to type:

man perlre
in Terminal. In other words, a pretty good reference to Perl's regular expressions are already available on OS X. A cheat-sheet may be nice, but there are many subtleties with regard to regular expressions that it's often very useful to have a good reference whereas a short reference like that could just be confusing.

[ Reply to This | # ]
Regular expression reference for BBEdit
Authored by: Westside guy on Apr 20, '13 01:55:57PM

I prefer using the app "ManOpen" instead of a terminal window to read man pages, but otherwise - yeah, exactly this.

I've got nothing against a cheat sheet being available on the web... it's just that we've already got a good reference on our own computers.



[ Reply to This | # ]
Regular expression reference for BBEdit
Authored by: tobyvoss on Apr 20, '13 12:51:00AM

…also, what's wrong with the "Searching with Grep" chapter in BBedit's Help documentation?



[ Reply to This | # ]