我有很多字符串
blip createBlip ( float x, float y, float z, [int icon=0, int size=2, int r=255, int g=0, int b=0, int a=255, int ordering=0, float visibleDistance=99999.0, visibleTo = getRootElement()] )
float float float getElementRotation ( element theElement [, string rotOrder = "default" ] )
我需要得到这个字符串的一部分,比如
array(
[1] = blip
[2] = createBlip
[3] = x
[4] = y
[5] = z
)
和
array(
[1] = blip createBlip
[2] = float x
[3] = float y
[4] = float z
[5] = int icon=0
[6] = int size=2
[7] = int r=255
...
可以用正则表达式做到这一点吗?如果是,如何?