に文字列を分割するにはどうすればよい私は以下のように言葉に文を分割します:
例えば:私は言葉と記号の組み合わせ配列
This is a test from php, python, asp and also from other languages. Alash! i cannot get my output as followings.
結果:私のオプションを指定できますどのような
array(
[0]=>"This",
[1]=>"is",
[2]=>"a",
[3]=>"test",
[4]=>"from",
[5]=>"php",
[6]=>",",
[7]=>"python",
[8]=>",",
[9]=>"asp",
[10]=>"and",
[11]=>"also",
[12]=>"from",
[13]=>"other",
[14]=>"languages",
[15]=>".",
[16]=>"Alash",
[17]=>"!",
[18]=>"I",
[19]=>"cannot",
[20]=>"get",
...
)
それはPHPで?
は.../\ + S 'を使用するには余りにも – KoolKabin
より良いスペースをスキップしていただければ幸い爆発使って、この方法を試してみてください| \ bの(?= \ W)/'、そしてあなたそれらの空の文字列で終わらないでください。 – mhyfritz
gr8 one ... thnx働いた – KoolKabin