fn array_get_regex(array: Vec<String>) -> Vec<String> {
	let mut tmp = Vec::new();
	for item in array {
		if item.starts_with("r#") {
			tmp.push(item[2..].to_owned())
		}
	}
	tmp
}
// Turn an array into a Vec<String>, only adding items which contain regex.
// All regex strings must start with r#, so that the program knows they are regex. The r# will be trimmed from the string before the regex is parsed.
Turn an array into a Vec, only adding items which contain regex.
All regex strings must start with r#, so that the program knows they are regex. The r# will be trimmed from the string before the regex is parsed.
Turn an array into a Vec only adding items which contain regex . All regex strings must start with r# so that the program knows they are regex . The r# will be trimmed from the string before the regex is parsed .
fn array_get_regex(array: Vec<String>) -> Vec<String> {
	let mut tmp = Vec::new();
	for item in array {
		if item.starts_with("r#") {
			tmp.push(item[2..].to_owned())
		}
	}
	tmp
}
fn array_get_regex ( array : Vec < String > ) -> Vec < String > { let mut tmp = Vec :: new ( ) ; for item in array { if item . starts_with ( " " ) { tmp . push ( item [ 2 .. ] . to_owned ( ) ) } } tmp }
Turn an array into a Vec<String>, only adding items which contain regex.
Turn an array into a Vec<String > only adding items which contain regex .
array
Vec<String>
array
Vec<String>