C#C
C#3y ago
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?
Was this page helpful?