codingfactor.com
Create SEO friendly URL Slug in C# - Coding Factor
[crayon-5ceaddc4d5c17819011292/] [crayon-5ceaddc4d5c2d924059091/] Below points implemented in code Created Urlhelper class Created method GenerateSeoFriendlyURL Pass string to created method Create Regex object with keywords. Add name space usingText.RegularExpressions; Use regex.Replace to string Convert string to lowercase Remove spaces from left and right from string Remove combined hyphen if more than one