$_ = '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!
In reply to Re: Tell regex to stop at "phrase", instead of char - how?
by naikonta
in thread Tell regex to stop at "phrase", instead of char - how?
by isync
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |