#17800
Stefan
Participant

Another tip:

To add a name or an hint to your stored regex, you can utilize “Named Groups” feature in the .Net framework syntax:
 

If your regex has many groups, keeping track of their numbers can get cumbersome.
Make your regexes easier to read by naming your groups
(?<name>pattern) or (?’name’pattern)
(pasted from http://www.regular-expressions.info/named.html)

  
 
We just use that “Named Group” feature to add an comment to our regex pattern,
we even utilize that “Named Group” feature without adding an regex pattern to it, but just using the comment feature.
  
 
Example:
 
(?<Match Two Digits>)\d\d
or
(?<Match Two Digits>\d\d)
 
 
More  Examples
(?’Match Date’)\d{1,2}-\d{1,2}-\d{4}
(?<Match IP address>)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
 
 
If you use this feature to add an comment to your stored regular expression pattern,
you will better memorize later on what this was made for ;-)
 
HTH?