pub(crate) fn try_extract_offset(text: &str) -> Option<(TextSize, String)>
Returns the offset of the first occurrence of $0 marker and the copy of text without the marker.
$0
text