powershell regex to match 5 digit number
Introduction to PowerShell Regex-Regular Expression. Typical jobs for Regex are to match patterns in text, and to replace individual characters or even whole words. It's often when numbers mix with text that confusion occurs, and that's when you need a PowerShell script to solve the problem.he expected result is. True. In the above example [Regex] calls for the method IsMatch(). Then it's up to us to supply two values, the input string ($Name) followed by a comma, and the pattern to match (Alan).