Hi All
I am trying to query a string - i.e. "the system is still running and we have no problems"
but i want to "cut" the string so it ends after running.
so i end up with the "system is still running"
how can i do this using regular expressions? i am coding in PHP and am importing data in through a file into a variable. there is only 1 instance of the word running in the whole document, i just need to find it, and delete EVERYTHING after that word!
Any ideas????
Greatly appreciated!!