I want to pull out only the text part(not special character !@#$%^&*()...)
In this case, I want to pull javascriptbye which can change, but for is stable.
var phrase = "helloworldpython2000forjavascript)bye";
var myPattern = /for(.*)/
myPattern pulls out all texts, javascript)bye. I tried /for(.[a-zA-Z]+$/ but no luck.
How can I change it, so that I can have text after specific word?
Thanks!
EDIT
phrase could include space as well.
var phrase = "hello world python 2000 for javascript ) bye";
var myPattern = /for(.*)/
search,match,exec?match