Neo Mujico
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year ago

How to regex

lemmy.ml

message-square
6
fedilink
2

How to regex

lemmy.ml

☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year ago
message-square
6
fedilink
alert-triangle
You must log in or register to comment.
  • TechCodex@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Step 3: Name your cat ‘Regex’

  • ThuleanPerspective@eviltoast.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Removed by mod

  • stewie410@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    I don’t know all of the regex rules (look ahead/behind, etc); but it’s honestly not that bad. If you can learn the syntax for a programming language, you can learn the basics of regex…

    • ☆ Yσɠƚԋσʂ ☆@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Sure, learning basics of regex is not that hard, but complex regex expressions can easily become impenetrable. I actually like the verbal expressions idea where you write out the regex using a long form and that gets compiled into the actual regex, e.g:

      const tester = VerEx()
          .startOfLine()
          .then('http')
          .maybe('s')
          .then('://')
          .maybe('www.')
          .anythingBut(' ')
          .endOfLine();
      

      That seems like the best of both world approach to me.

      • stewie410@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        My brief experience with LINQ has also taught me to prefer this type of thing as well; though I still use regex on a daily basis most of the time, given my environment.

  • tetris11@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago
    while :; do curl -X POST -d '{"text": "Removed by mod" }' https://lemmy.ml/post/13463433; done
    

    Nothing to see here folks

  • Tenkard@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Wrote a regex today and realized it looked like two people waving a hand ;D

  • ThuleanPerspective@eviltoast.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Removed by mod

  • ThuleanPerspective@eviltoast.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Removed by mod

  • ThuleanPerspective@eviltoast.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Removed by mod

  • ThuleanPerspective@eviltoast.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Removed by mod

  • ThuleanPerspective@eviltoast.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Removed by mod

  • ThuleanPerspective@eviltoast.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Removed by mod

  • ThuleanPerspective@eviltoast.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Removed by mod

  • ThuleanPerspective@eviltoast.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Removed by mod

  • ThuleanPerspective@eviltoast.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Removed by mod

  • ThuleanPerspective@eviltoast.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Removed by mod

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: !programmerhumor@lemmy.ml

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.

  • 3 users / day
  • 34 users / week
  • 101 users / month
  • 389 users / 6 months
  • 0 local subscribers
  • 37K subscribers
  • 1.01K Posts
  • 3.61K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.8
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org