Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(Get-Content\s+(['"]?)C:\\bulk\\).*?(\.txt\2)
/
gm
Test String
New
$line = '' Get-Content C:\bulk\XXX.txt | Select-String -Pattern 'TEMP' | ForEach-Object { #blah blah }
Substitution
Processing...
${1}BBB$3