I would not want to open another thread just for this, so I have one more related question if you do not mind...
This RegEx matches one to ten uppercase words, divided by a space character and ending with a colon and space.
Code:
.Text = "([A-Z]@ ){1,10}[A-Z]@: "
.Replacement.Text = "> \1"
It works good as it is listed above, but when I try to enclose it between two parentheses (to capture the group), I get a 'not valid pattern expression' error. The code is this:
Code:
.Text = "(([A-Z]@ ){1,10}[A-Z]@: )"
.Replacement.Text = "> \1"
How should I write the wildcard pattern, please?
Alex