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

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

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