Skip to content

antiufo/Shaman.CommonExtensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shaman.CommonExtensions

Commonly-used utility methods.

using Shaman;

"something(1)".CaptureBetween("(", ")"); // returns "1"
something.RecursiveEnumeration(x => x.Parent); // gets the root
"something".RegexReplace("[aeiou]", "_"); // returns "s_m_th_ng"
"something".TrimStart("some"); // returns "thing"
"something".TrimEnd("thing"); // returns "some"
"something".Capture("s(.*)g"); // returns "omethin"

"something".In(arr); // like arr.Contains("something")

About

Commonly used extension methods

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages