Regex Needed
Budget: £10 – £20 GBP
I need a regex created for a powershell script
It will take the pipeline for Get-ChildItem and match files that contain a string at the start but I wish to avoid files with a month end date in the filename.
e.g
Get-ChildItem -Path "c:\temp" | Where-Object ( $_.LastWriteTime -lt $LastWriteTimeCutOff) | Where-Object ($_.Name -match '^Backup_ZebraPLN_PROD(12-31)|(11-30)|(10-31)|(09-30)')
(the website asked me to remove the normal curly brackets, have replaced them with round brackets() )
I want it to match all files starting with 'abc' and not match files containing any of the month end dates in the filename, oin the format 12-31, 11-30 etc,
e.g.
abc othertext 12-30-2021.txt = match
abc othertext 12-31-2021.txt = not match
ayz othertext 12-30-2021.txt = not match
It will take the pipeline for Get-ChildItem and match files that contain a string at the start but I wish to avoid files with a month end date in the filename.
e.g
Get-ChildItem -Path "c:\temp" | Where-Object ( $_.LastWriteTime -lt $LastWriteTimeCutOff) | Where-Object ($_.Name -match '^Backup_ZebraPLN_PROD(12-31)|(11-30)|(10-31)|(09-30)')
(the website asked me to remove the normal curly brackets, have replaced them with round brackets() )
I want it to match all files starting with 'abc' and not match files containing any of the month end dates in the filename, oin the format 12-31, 11-30 etc,
e.g.
abc othertext 12-30-2021.txt = match
abc othertext 12-31-2021.txt = not match
ayz othertext 12-30-2021.txt = not match