Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to Programmer [email protected]English • 1 year ago

Regex flavors

lemmy.world

message-square
32
fedilink
412

Regex flavors

lemmy.world

@[email protected] to Programmer [email protected]English • 1 year ago
message-square
32
fedilink
  • @[email protected]OP
    link
    fedilink
    24•1 year 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.

    • @[email protected]
      link
      fedilink
      2•1 year ago

      TIL thanks!

Programmer [email protected]

[email protected]
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.
  • 24 users / day
  • 75 users / week
  • 467 users / month
  • 1.54K users / 6 months
  • 4 subscribers
  • 1.82K Posts
  • 38.6K Comments
  • Modlog
  • mods:
  • @[email protected]
  • @[email protected]
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org