© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
13 replies
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])?
$
^
(?<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
regex101: build, test, and debug regex
Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET.
regex101: build, test, and debug regex
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

multiple capture groups regex [Answered]
C#CC# / help
4y ago
Regex help.
C#CC# / help
11mo ago
❔ REGEX help!
C#CC# / help
3y ago
❔ Regex help
C#CC# / help
3y ago