Help needed in writing regular expression using TCL
- by user330727
Hello Everyone,
Just seeking a favour to write a regular expression to match the following set of strings. I want to write an expression which matches all the following strings TCL
( XYZ XZZ XVZ XWZ )
Clue : Starting string is X and Z ending string is same for all the pairs. Only the middle string is differs Y Z V W.
My trial: [regexp {^X([Y|Z|V|W]*)Z$}