Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a DSL for writing Regular Expressions?

Tags:

regex

dsl

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!

like image 422
Achilles Avatar asked Aug 10 '11 14:08

Achilles


1 Answers

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.

like image 135
Jon Skeet Avatar answered Oct 16 '22 01:10

Jon Skeet