CosmosOS / Cosmos

Cosmos is an operating system "construction kit". Build your own OS using managed languages such as C#, VB.NET, and more!
https://www.goCosmos.org
BSD 3-Clause "New" or "Revised" License
2.85k stars 536 forks source link

Plug for RegularExpression (Regex) #3005

Closed xavier114 closed 1 day ago

xavier114 commented 3 weeks ago

What is the usecase for this plug There should be a plug for RegularExpression so Regex could be Used.

Complexity of plug I dont think so

Describe alternatives you've considered Well i use simpler command

Additional context Its just would be useful for Command lIne parsing which is a big part of Command Line Interface.

zarlo commented 3 weeks ago

when we update to .net 8 we should have support for ".NET regular expression source generators" so you will be able to use regex if the expressions are known at compile time

and as for plugging runtime Regex it makes use of emit and reflection so that will take a while

xavier114 commented 3 weeks ago

Okay thanks a lot for this informations.

Blackneeed commented 3 weeks ago

SammaPixelStudio has made a port of RegularExpression for COSMOS: https://github.com/Samma2009/System.Text.RegularExpressions

And if you have some questions about it, ask him @samma2009