Matching on Substrings in Delimited List Using Regex
问题 I'm attempting to formulate a regex in Java to capture multiple strings in a space-delimited list. Here is the string I am trying to capture from ... String output = "regulations { qux def } standards none rules { abc-123 456-defghi wxyz_678 } security { enabled }"; And I want use a regex to match on each word in the space-delimited list between the brackets immediately following rules . In other words, I would like the regex to match on abc-123 , 456-defghi , and wxyz_678 . These substrings