Pregunta

I use regular expressions all the time. However, there are occasions when it would be very helpful to be able to use one of the other pattern matching methodologies, for example, REXX PARSE and SNOBOL.

Are there any .NET implementations of either of these two pattern matching methods? If is-rexx-available-in-net is anything to go by, the likelihood isn't high. Google isn't being very friendly at the moment, giving me way too many links to RosettaCode.

¿Fue útil?

Solución

The answer is YES. I found some old VB6 code from a programmer called Oscar Brain. I've converted it to VB.Net and then to C#. It's on Bitbucket. It's not perfect, but there's an updated VB6 version on Planet Source Code which I will port over when time permits.

Otros consejos

F# has something called "Active patterns" which might do what you want. Look here: http://fsharpforfunandprofit.com/posts/convenience-active-patterns/

The answer is NO. As of now there is no implementation for REXX PARSE written for .NET

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top