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
    3
    ·
    3 days 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
      4
      ·
      3 days 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.

    • NaibofTabr@infosec.pub
      cake
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 days ago

      In this context probably javascript, but yes the delimiter is more an artifact of the code language that the regex is being used in than it is part of the regex itself.