in reply to Tell regex to stop at "phrase", instead of char - how?
$_ = 'nothing can stop the bus on the road'; print +(split /stop/)[0], "\n"; print +(split /bus/)[0], "\n"; # output (with trailing space) nothing can nothing can stop the
Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!
|
|---|