C#C
C#4y ago
ssernikk

regex help [Answered]

So I made a regex with little help of copilot, it looks like this:
^
(?<source>[0-7],[0-7])\s?
(?<destination>[0-7],[0-7])\s?
(?<capture>[0-7],[0-7])?
$


It should match strings like this: "n,n > n,n x n,n" or like this: "n,n > n,n", where n is number between 0 and 7 (spaces between are optional)

However when I test it here https://regex101.com/r/MMnQql/1 I get no matches
The question is why? Can somebody help me?
regex101
Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET.
Was this page helpful?