I am trying to get the word with the following:
$string = 'code 10OFF75 +EXTRA';
$regex = '/(?<=code)\s\w+/';
Output (tried at rubular.com):
10OFF75
I want to skip the special character with the word code
. Say, I have the string code: | code- | code:-
then how do I grab the next word?