Can't find a suitable title for this
-
Tuesday, March 13, 2012 9:34 AM
In Powershell:
PS C:\> '12345678901234567890' -match '(234).*?(234)(.*?)' True PS C:\> $matches Name Value ---- ----- 3 2 234 1 234 0 2345678901234 PS C:\> $matches[3].Length 0
Why is $matches[3] an empty string? Should it not be '567890'?
Thanks.
All Replies
-
Tuesday, March 13, 2012 10:33 AM
It would be if the expression was (234).*?(234)(.*?)$ or (234).*?(234)(.*).
I usually use Expresso to help build and debug Regular Expressions.
Paulo Morgado- Marked As Answer by K.Kong Tuesday, March 13, 2012 10:43 AM
-
Thursday, April 12, 2012 10:04 AM
Hi,
verify that expression on following link.:Javascript Regular Expression Validator | Regular Expressions Library and Testing Tool
Cheers,



