문제

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.

도움이 되었습니까?

해결책

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.

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top