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)
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.
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.
What you call delimiter is part of
sed, Ruby or Perl syntax, right? In Python, Regex strings are usually delimitedr" "(rfor raw: don’t process special characters)Usually regex by it self is shown with
/delimiter. Using it on code is language-specific. On rust you normally user#"<regex>"#, on javascript you can just/<regex>/, but that’s just the language’s definition, not regex.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.