A
A
alex995052015-10-20 18:24:21
Regular Expressions
alex99505, 2015-10-20 18:24:21

Why does a regular expression that works fine in php not work in c#?

The regular season itself: https://regex101.com/r/wQ5aA7/1

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2015-10-20
@saboteur_kiev

Because regular expressions have many dialects.
Apparently C# doesn't support some of the metacharacters you used, or the escaping for C# was bugged.

A
alex99505, 2015-10-20
@alex99505

Everything turned out to be easier, without reading books)
I looked at the matches in the wrong place - just in [0] and not in Groups

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question