我有一個算術字符串,將類似於以下模式。 a. 1+2+3 b. 2/1*100 c. 1+2+3/3*100 d. (1*2)/(3*4)*100 需要注意的事項是 1.字符串絕不會包含空格。 2.字符串將始終是數字,算術符號(+, - ,*,/)和字符'('和')'的組合 我正在尋找一個PHP正則表達式來分割字符基於它們的類型並形成如下的單個字符串字符的數組。 : 一個(注意,因爲我想數字比10
我有代碼查找文本目前符合 $data=["as much as I like oranges, I like bananas better",
"there's no rest for the wicked",
"the further I move from my target, the further I get",
"just because I like that song, doe