Regex includes two matches in first match
问题 I have this regex that tries to find individual STEP-lines and divides it into three goups of reference number, class and properties: #14=IFCEXTRUDEDAREASOLID(#28326,#17,#9,3657.6); becomes [['14'], ['IFCEXTRUDEDAREASOLID'], ['#28326,#17,#9,3657.6']] Sometimes these lines have arbitrary line breaks, especially among the properties, so I put some \s in the regex. This however makes for an interesting bug. The pattern now matches TWO rows into every match. How can I adjust the regex to only