T
T
TechNOIR2018-05-14 13:40:01
C++ / C#
TechNOIR, 2018-05-14 13:40:01

C#. How to implement analogue of preg_match_all from PHP?

Good afternoon.
There is a script in PHP. It executes preg_match_all:

preg_match_all('/img_url=(.*?)\&amp\;pos=(.*?)\&amp\;/is', $text, $img);

How would you do the same in C#? Is there an equivalent function? Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2018-05-14
@TechNOIR

Use Regex.Matches .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question