🔎 Find common expressions in a string
Table of Contents generated with DocToc
```rust extern crate commonregex_rs;
use commonregex_rs::commonregex;
let logs = String::from(" Started GET '/' for 127.0.0.1 at 2019-05-11 00:51:35 Started GET '/' for 10.10.0.1 at 2019-05-11 00:52:05 ");
let filtered_ips = commonregex::ip::v4(&logs); // #=> vec!["127.0.0.1", "10.10.0.1"] ```
rust
commonregex::internet::email(&text)
URL
rust
commonregex::internet::url(&text)
IPv4
rust
commonregex::ip::v4(&text)
IPv6
rust
commonregex::ip::v6(&text)
French phone numbers
rust
commonregex::phone::fr(&text)
US phone numbers
rust
commonregex::phone::us(&text)
Full documentation available via
sh
$> cargo doc --open
This project was inspired by commonregex