Dendarii
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
VegOwOtenks@lemmy.world to Programmer Humor@lemmy.mlEnglish · 10 months ago

Regex flavors

lemmy.world

external-link
message-square
33
fedilink
1
external-link

Regex flavors

lemmy.world

VegOwOtenks@lemmy.world to Programmer Humor@lemmy.mlEnglish · 10 months ago
message-square
33
fedilink
  • VegOwOtenks@lemmy.worldOP
    link
    fedilink
    arrow-up
    0
    ·
    10 months ago

    You can use backreferences \1 \2 etc. but you can also give them names explicitly.
    it looks like this: (?<name>inner-regex)
    Some flavors support it, kotlins doesn’t apparently.

    • jaybone@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      10 months ago

      TIL thanks!

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 6 users / day
  • 38 users / week
  • 181 users / month
  • 1.59K users / 6 months
  • 0 local subscribers
  • 35.6K subscribers
  • 1.78K Posts
  • 36.8K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org