programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Mac to RegEx · 2 years ago

Why do regexes use $ and ^ as line anchors?

buttondown.email

external-link
message-square
3
link
fedilink
35
external-link

Why do regexes use $ and ^ as line anchors?

buttondown.email

Mac to RegEx · 2 years ago
message-square
3
link
fedilink
A history that will satisfy nobody.
alert-triangle
You must log in or # to comment.
  • SpaceNoodle@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    2 years ago

    tl;dr “I dunno, maybe they just used those keys”

  • NostraDavid
    link
    fedilink
    arrow-up
    3
    ·
    2 years ago

    Why not ask Ken himself?

  • SubArcticTundra@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    Fair enough

RegEx

regex

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]

Welcome to the RegEx community! This is a place where you can learn about and get help with regular expressions

A regular expression is a sequence of characters that specifies a match pattern in text. Theyre usually used for find, or find and replace operations on strings, or for input validation.


Visibility: Public
globe

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

  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 1 user / 6 months
  • 163 local subscribers
  • 420 subscribers
  • 15 Posts
  • 30 Comments
  • Modlog
  • mods:
  • VonTum
  • recursive_recursion [they/them]
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org