Loading...
Skip to content
Warren Myers' Merikebi My online archive
  • RSS
  • Facebook
  • Instagram
  • Pinterest
  • Twitter
  • LinkedIn
  • GitHub
  • Telegram
  • Skype

Pages

  • Welcome to Warren Myers’ Merikebi
  • Pocket

Answer by warren for Final comma in regex

Posted on 8 March 2023

Pages

  • Welcome to Warren Myers’ Merikebi

This seems to do what you’re asking for

[\D^]\d\d?(\,\d{1,2})$

Start with either a non-digit or the beginning of the line

Match one or 2 digits

Then a comma plus 1-2 digits (but no more)

from User warren – Stack Overflow https://stackoverflow.com/questions/75672986/final-comma-in-regex/75673993#75673993
via IFTTT

merikebi

warrenmyers.com
Taggedstackexchange
by merikebiCategories:blih
  • RSS
  • Skype
© Warren Myers' Merikebi. All rights reserved.
Back to top