Questions asking us to recommend or find开发者_Go百科 a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this questionIs there a translator from pseudo English to regexp? That is, a sort of scripting language to ouput regexp? Thank you. Tuba
Your best bet is txt2re or a similar tool.
Honestly, why would anyone not want to write their own regular expressions :)
There are tools (websites) that build regular expressions on a piece of text, but they require a fair amount of user input. Checkout this one:
http://boingboing.net/2011/04/14/automatically-genera.html
It sounds like you are looking for a rules engine (using it as an API in your code)? If that is the case, you should checkout Drools, it's very powerful and can do too much.
精彩评论