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

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -

tsql - Correct sql/hql query (aggregate in where clause) -