Learn to use RegEx in Google Sheets in 10 minutes

Поделиться
HTML-код
  • Опубликовано: 28 янв 2025

Комментарии • 26

  • @douglasteixeiragoncalves6084
    @douglasteixeiragoncalves6084 2 года назад

    Great video Jonah! You helped me a lot.

  • @mikebenstead7600
    @mikebenstead7600 Год назад

    Mind blowing! Programming just got a hell of a lot simpler.

  • @Torrana
    @Torrana 3 года назад +1

    Thank you for this video, you are a very clear presenter.

  • @svenGPT
    @svenGPT 4 года назад +2

    Thank you! Helped me a lot. By the way: nice music at the end.

  • @dodgewagen
    @dodgewagen 8 месяцев назад

    Thank you. Very useful!

  • @MrDoubleYa
    @MrDoubleYa 4 года назад +1

    This video is great. Love the real world examples. Keep up the good work.

    • @DevProTips
      @DevProTips  4 года назад

      Thanks, Walter! I appreciate the support!

  • @ALSawad
    @ALSawad 2 года назад

    Hey Jonah, thanks for the video, I'm wondering how I would extract alpha(s) and the spaces and excluding the digits.

  • @chiragjain101
    @chiragjain101 3 года назад

    That was butter smooth 👍👍

  • @sunpy7908
    @sunpy7908 4 года назад

    Wow, thank you. fantastic and super quick. Subbed

  • @clutteredvulture
    @clutteredvulture 15 дней назад

    how did i not know this existedddd

  • @suhasdeore3288
    @suhasdeore3288 4 года назад +1

    Woooww...great tricks..amazing. 👍👍

  • @Michael.design
    @Michael.design 4 года назад +1

    Hey Jonah, great tutorial! I was wondering if you could help me.. I'm trying to extract values after the specific word 'rawValue'. The values that follow that word come in three different variations:
    A word: rawValue=\"—
    A large positive number: rawValue=\"280243000\"
    A large negative \"-280243000\"
    A small number: rawValue=\"0\"
    =(REGEXEXTRACT(A60,".*rawValue=(.*)")), which only extracts the first value. How would I be able to extract them all? The amount of cases in a cell varies as well.
    Thank you in advance!

    • @DevProTips
      @DevProTips  4 года назад +1

      Google Sheets only allows a single capturing group to return 1 match, so you'll need multiple groups.
      You can use REGEXREPLACE to insert capturing groups and then extract all of the groups that are captured.
      Here's an idea to get you started:
      =REGEXEXTRACT(A60, REGEXREPLACE(A60, "(rawValue=)(\S+)", "$1($2)"))

  • @NewToneProducer
    @NewToneProducer 3 года назад

    This is a world of excel/sheets that I didn't know existed

  • @joshuacohen5618
    @joshuacohen5618 2 года назад

    I used this regular expression in Excel previously
    ^(GP\:){0,1}9716[123]
    to find any of these values
    "97161"
    "97162"
    "97163"
    "GP:97161"
    "GP:97162"
    "GP:97163"
    However, this expression is not working in Sheets.
    Do you have any suggestions to correct the expression? Or other ways to search for those values in a formula?

    • @DevProTips
      @DevProTips  2 года назад

      That formula should work for most cases. If you're doing an extract, the parentheses around the GP: part make it a capturing group which will make it so just the GP: will be extracted.
      Putting ?: at the beginning of a group makes it non-capturing and more efficient if you don't intend on using the GP: value by itself.
      In short, this is how I'd simplify it if GP: does not need to be captured:
      ^(?:GP:)?9716[123]")
      If you want to detect it *within* a string and not just the beginning, you'll want no anchor:
      (?:GP:)?9716[123]")

  • @markjoseph2423
    @markjoseph2423 2 года назад

    Hello can you help me fot my project? I want to extract the first 2 words of the file name. And if the first word is numbers. I want to extract the next 2 words to it. Pls help. I can pay thru paypal.

  • @gulshansharma4469
    @gulshansharma4469 2 года назад

    Please share this sheet for practice

    • @DevProTips
      @DevProTips  2 года назад +1

      Feel free to make a copy and use it as you wish
      docs.google.com/spreadsheets/d/1LkhqhGgiXDb4x1ouZeJOUwKlVd3LJpJDDMgBe12RQcU/edit?usp=sharing

    • @gulshansharma4469
      @gulshansharma4469 2 года назад

      @@DevProTips thanks

  • @Robin-sw1is
    @Robin-sw1is 2 года назад

    I showed this to my boyfriend and he said "I love how Google Sheets turns you on".

  • @nisargagza
    @nisargagza 3 года назад

    Didn't get anything. It is not for beginners