the original said reggae but i misread it as regex and got this idea lol

original comic artist: thisstupidtwink@insta

  • ChaoticNeutralCzech@feddit.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    What you call delimiter is part of sed, Ruby or Perl syntax, right? In Python, Regex strings are usually delimited r" " (r for raw: don’t process special characters)

    • owsei@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      Usually regex by it self is shown with / delimiter. Using it on code is language-specific. On rust you normally use r#"<regex>"#, on javascript you can just /<regex>/, but that’s just the language’s definition, not regex.