regexdsl

Is there a DSL for writing Regular Expressions?


I'm wondering if there is a DSL(domain specific language) for writing Regular Expression? I know "few" people that actually can read and understand regular expression and it seems that a language abstraction that "compiles" to regular expressions would be an awesome win if one exists. Thanks!


Solution

  • You haven't stated your platform, but assuming C# based on your other tags, you might want to look at LINQ to Regex. I'm not sure it's really a good idea, but it's the closest I've heard of to what you're after.