-3
的越来越部分我有很多像琴弦正则表达式和字符串
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
.. 。
用正则表达式可以做到这一点吗?如果是,如何?
我想函数参数的数量是动态的吗?有可能的。你试过什么了? – 2012-07-20 17:34:42
>> ***我需要......请帮助我。*** <<向我们展示您的代码(到目前为止)。 – 2012-07-20 17:39:43
请指定输入格式。从你提供的两个例子中可以看不出来。 – oberlies 2014-05-08 15:00:09