This is a problem that you probably shouldn't solve with regular expressions.
Use a regular expression to extract an array of letters of the day of the week. You can simply use any other method to simply get the part of the string you want to make your replacements on.
Then just use a loop to iterate over each of them, replacing it with your dictionary / map value.
In addition, C # (for example, almost any modern language) has a rich string library, with which you can replace substrings (in your case, the letters of the day) with other strings (in your case, "1", etc.), t need to run a cycle.
source share