Hi Alex, RegexReplace is not recognized to be a valid method. Am I missing a lib ref? (Regex is recognized)
thanks eyal On Feb 11, 10:55 am, Alex Henderson <[email protected]> wrote: > I have an extension method I use for this, basically the same as Kens... > > public static string Slugify(this string text) > { > return text.ToLowerInvariant().RegexReplace("[^a-z0-9]+", > "-").RegexReplace("-+$", "").RegexReplace("^-+$", ""); > } > > On Thu, Feb 12, 2009 at 5:38 AM, eyal <[email protected]> wrote: > > > Hi All, > > > I need to convert a string into url compatible format. For example, > > > Product cost $24.00 & higher/lower. <- original string > > > product-cost-24-00-higher-lower <- url format > > > I know that I can use string.Replace() but there are alot of > > characters that I may have to replace to accommodate a proper url. Is > > there a function that is already written that I can use? > > > thanks > > > eyal --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
