Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Help with regular expression

$
0
0

Hi,

I have string like "abcd_efgh_12345671.log". I need to get only the numbers without the last digit "1", meaning only "1234567" (Marked in bold). The last digit can be any number between 1-9. Can someone help me to find the correct regular expression for this case?

Thanks

Daniel


Viewing all articles
Browse latest Browse all 6937

Trending Articles