Delete first line of $Text

What is the easiest way to delete the first line in $Text and leave everything else?

How about:

$Text = $Text.substr($Text.paragraph(0).size);
2 Likes

This also works ā€¦

$Text=$Text.replace(ā€œ^.*\nā€)

1 Like