How do I replace a word with a new line and a word using regex with an empty string in Powershell? -


how replace word new line , word using regex empty string in powershell?

below sample content... need delete use database , go i'm using powershell , powershell_ise editor:

use database_instance

go

if condition

you need match newline , space after newline:

/use database_\w+\n\s*\w+/g 

Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

single sign on - Logging into Plone site with credentials passed through HTTP -