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 -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -