Welcome › Forums › General PowerShell Q&A › How to ignore first open barkets
Hi, I have following line of code which works fine but when a string which has two () it only picking the first one
What I want to do is if more then 1 is found then only send the last one.
This is the name of the movie on IMDB: Home (II) (2015)
$Released = (($Match -split “ \(“) -split “\)”)
I’m using following code to get the movie detials.
If it’s always at the end of string, probably best to use $ to specify you want to match the end of the string.
$film = ‘Home (II) (2015)’