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

Popular posts from this blog

mysql - where clause in inner join query -

java - Why my included JSP file won't get processed correctly? -

php - MySQL Query for Advanced Search multiple criteria -