Time to Geek Out: Google Docs Now Supports Regular Expressions

Time to Geek Out: Google Docs Now Supports Regular Expressions Google Office It's time to get your RegEx on, because Google has updated the web version of Google Docs with support for regular expressions.

For those not familiar with the term,  regular expressions are a way to define search terms so that you get back more than just references to a single term.

For example, you could search a document for the zip code 22193, and find all the places where that set of numbers show up. Or you could search for 221[0-9](2), and you will find all the places in a document where the zip codes 22191, 22192, 22193, etc, can be found.

You can think of this as kinda cutting edge find and replace, but it would be more accurate to call it an intermediate-level programming skill. Not everyone knows how to do it, and it is possible to make horrible, horrible mistakes if I'm not careful, but in the right hands regular expressions are immensely useful.

And now it is supported in Google Docs - but only on the web.

Android Police said that Google Docs accepts expressions which follow RE2 syntax, so it might be worth even an experienced RegEx wizard's while to bone up on the specifics.

And if you're only encountering regular expressions for the first time, Google has also posted a helpful support doc.

Nate Hoffelder

View posts by Nate Hoffelder
Nate Hoffelder is the founder and editor of The Digital Reader: He's here to chew bubble gum and fix broken websites, and he is all out of bubble gum. He has been blogging about indie authors since 2010 while learning new tech skills at the drop of a hat. He fixes author sites, and shares what he learns on The Digital Reader's blog. In his spare time, he fosters dogs for A Forever Home, a local rescue group.

3 Comments

  1. Anne-Maree Gray27 September, 2016

    All I want in google docs is a decent word counter – one that can keep track of words added through the doc – like a daily total.

    Reply
  2. Jason van Gumster28 September, 2016

    Hooray! Google Docs is finally as powerful as vim!

    😉

    Reply
    1. Ed Bear28 September, 2016

      To quote the general in a story I read: “I’ll take what I can get.”

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to top