对不起,一般标题。我正在寻找一个 pythonre
表达式来匹配以下正则表达式:
stringOfAlphaNumeric1 ( stringOfAnyCharacter1 , stringOfAnyCharacter2 , stringOfAnyCharacter3 )
此表达式可以重复多次,以空格分隔。例如:
stringOfAlphaNumeric1 ( stringOfAnyCharacter1 , stringOfAnyCharacter2 , stringOfAnyCharacter3 ) stringOfAlphaNumeric2 ( stringOfAnyCharacter4 , stringOfAnyCharacter5 , stringOfAnyCharacter6 )
我怎样才能得到以下对:
stringOfAlphaNumeric1 -> stringOfAnyCharacter1
stringOfAlphaNumeric1 -> stringOfAnyCharacter2
stringOfAlphaNumeric1 -> stringOfAnyCharacter3
stringOfAlphaNumeric2 -> stringOfAnyCharacter4
stringOfAlphaNumeric2 -> stringOfAnyCharacter5
stringOfAlphaNumeric2 -> stringOfAnyCharacter6