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

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -