Lemmings.world
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
whoareu@lemmy.ca to Programming@programming.devEnglish · 11 months ago

last time when did you use Regular Expressions?

message-square
message-square
34
link
fedilink
25
message-square

last time when did you use Regular Expressions?

whoareu@lemmy.ca to Programming@programming.devEnglish · 11 months ago
message-square
34
link
fedilink
  • DeprecatedCompatV2@programming.dev
    link
    fedilink
    arrow-up
    7
    ·
    11 months ago

    Yesterday, for capturing URLs.

    • whoareu@lemmy.caOP
      link
      fedilink
      arrow-up
      3
      ·
      11 months ago

      https?//[a-zA-Z0-9_-]*

      I am kinda learning RE right now 😅

      • DeprecatedCompatV2@programming.dev
        link
        fedilink
        arrow-up
        4
        ·
        11 months ago

        What about ftp? 🤔

        • whoareu@lemmy.caOP
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          11 months ago

          If we want to include every protocol then the RE could be complex.

          • lad@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            11 months ago

            Depending on the use-case it maybe should. On the other hand, some things are better left to library implementations rather than custom regex, e.g. email validation

Programming@programming.dev

programming@programming.dev

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: !programming@programming.dev

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Visibility: Public
globe

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

  • 539 users / day
  • 1.79K users / week
  • 3.3K users / month
  • 7.36K users / 6 months
  • 72 local subscribers
  • 20.3K subscribers
  • 2.19K Posts
  • 33.9K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • MaungaHikoi@lemmy.nz
  • UlrikHD@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org