Skip to main content

anchor_split

Function anchor_split 

Source
pub fn anchor_split(pat: &[u8]) -> (bool, &[u8])
Expand description

Split a leading ^ anchor from the pattern body. The caller decides what the anchor means (find/match scan at most once; gsub/gmatch stop after the first position).