Relative Content

Tag Archive for c#.netregex

Regex Match with the last pattern [duplicate]

This question already has answers here: Regular expression to stop at first match (10 answers) Closed 2 days ago. Suppose I have a .txt file that needs to split using regex, and. So far, I’ve managed to split using my Regex Pattern. This is my .txt file: HMT940040324 SUBH2002078568 2002078568{1:F01BANK MBI}{2:I940MAP}{4: 2002078568:20:20210420182417 2002078568:25:2002078568 2002078568:28C:00075 2002078568:60F:D210420IDR0, […]

Regex to capture form values in dotnet

I’m writing a custom model binder that will sometimes have to deal with forms. Those forms may have arrays as values.
I’ve been using this method