Skip to main content

substring_before

Function substring_before 

Source
pub fn substring_before(value: &str, pattern: &str) -> String
Expand description

Get the substring before the first occurrence of a pattern.