Get character from string

I have a string [MembersOf-1]

How would I get 1? I know you can use trim(“[MembersOf-”), but then it will leave me with 1]

I know i can use trim or replace, but how would I take care of it all once.

Thanks?

Tony

$string = '[MembersOf-1]'
$string -match '-(\d+)' | Out-Null ; $Matches[1]
$String -Replace '\D+'

Thank you all