Regex for pattern match and replace -
I have several paths in that file that have this pattern
/ directory / dir
I change them to a regex Want pattern; / / Directory / dir / b / / directory / dir / c / / directory / dir / d / / directory / dir / new-path-a / / directory / dir / new-path-b / / directory / dir / new-path-c / / directory / dir / new-path-d / thanks
Search Pattern:
(/ Dir /) [^ /] * Replacement:
code <$ string = (/ Dir /) [^ /] * "," $ 1new-path- ");
Comments
Post a Comment