© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
26 replies
Raco

❔ confused with regex pattern

I’m new to regex, and basically i have a .txt file that I read from and from that file i need a specific part.

Example text file:

Key:
Something 1234789 …,,
)8382&wkdlpfofek..
/Key


So I need to extract everything between Key and /Key and put it into a string. How would I go about with creating the regex pattern for that?
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

Please help me with regex pattern
C#CC# / help
4y ago
✅ Replace regex-pattern with dynamically generated string.
C#CC# / help
3y ago
✅ help with regex
C#CC# / help
4y ago
✅ Regex pattern to match unique words each with 3 unique characters
C#CC# / help
2y ago