c# - Regular Expression Named Groups: Good or Bad? -


How can I group together names in C # using regular expressions and is this a good practice?

Thanks in advance.

Give the group a tag name:

  (? & Lt ; TagName & gt;. *)  

I fully feel that this is a good practice to note what happens when you change the regular expression, if you want to drag the data If you use indexed, then the order of these groups can be changed. By giving them names, you are actually specifying the data that you think is in the group, so it is also a form of self-documentation.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -