Java Regex Find Substring In Powershell Foreach