I got the result:$_ = "X1aaX2bbX3heeX4...X5loveU" ; @match = /X\d.+?/g; print "String: " . $_; foreach $word (@match){ print "\n$word"; }
I want the result to be below:X1aaX2bbX3heeX4...X5loveU X1a X2b X3h X4. X5l
How can I fix it?X1aaX2bbX3heeX4...X5loveU X1aa X2bb X3hee X4... X5loveU
In reply to use regex to split sentence by dyno
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |