Skip to content

A rust libarary for various helpful string extensions.

License

Notifications You must be signed in to change notification settings

epbuennig/strtools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strtools

strtools is a rust library for various helpful string extensions. It is under active development and adding more features is planned, criticism and contributions are welcome.

Examples

use strtools::StrTools;

// split a string by some separator but ignore escaped ones
let parts: Vec<_> = r"this string\ is split by\ spaces unless they are\ escaped"
    .split_non_escaped('\\', ' ')
    .collect();

assert_eq!(
    parts,
    [
        "this",
        "string is",
        "split",
        "by spaces",
        "unless",
        "they",
        "are escaped"
    ]
);

License

strtools is currently licensed under the MIT license.

About

A rust libarary for various helpful string extensions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages