pub fn fr(text: &String) -> Vec<&str>
Expand description
Returns matched French phone numbers as a vector of strings
§Arguments
text
- A String representing the text in which to search.
§Remarks
The digits in the phones can have 3 formats :
- Not separated : 0606060606
- Separated by dots : 06.06.06.06.06
- Separated by spaces : 06 06 06 06 06
§Examples
extern crate commonregex_rs;
use commonregex_rs::commonregex;
let text = String::from("On se rejoint au café ? Voici mon num 0606060606");
assert_eq!(vec!["0606060606"], commonregex::phone::fr(&text));