Crates.io | common_regex_rs |
lib.rs | common_regex_rs |
version | 0.1.0 |
source | src |
created_at | 2023-01-25 14:58:06.133928 |
updated_at | 2023-01-25 14:58:06.133928 |
description | Set of common regex for Rust. |
homepage | https://github.com/fadedreams/common_regex_rs |
repository | https://github.com/fadedreams/common_regex_rs |
max_upload_size | |
id | 767527 |
size | 16,097 |
A Rust library that provides a collection of functions for validating common types of strings, such as emails, passwords, URLs, and more. It uses the regex crate to perform the regular expression matching.
To use the library, add common_regex_rs as a dependency in your Cargo.toml file and include the library in your project:
extern crate common_regex_rs;
use common_regex_rs::*;
Then, you can call the various functions provided by the library to check if a given string matches a certain pattern. For example, to check if a string is a valid email address:
let email = "example@email.com";
let is_valid = is_email(email);
Here is the list of all the functions that are provided by the library:
This library is licensed under the MIT license. See the LICENSE file for details.