T
T
TechNOIR2019-02-11 01:37:30
C++ / C#
TechNOIR, 2019-02-11 01:37:30

C#. How to find a string in a file using a regular expression?

Good afternoon.
I receive the text from a file by means of ReadAllText.
The regular expression was picked up by ^.*[0-9][AZ].*$
There is only one line in the file that matches the regular expression, so you need to get it.
Can you please tell me how to find a string in a file using a regular expression?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question