I am trying to craft a regular expression that will match all characters after (but not including) the first space in a string.
Input text:
foo bar b
You don't need look behind.
my $str = 'now is the time'; # Non-greedily match up to the first space, and then get everything after in a group. $str =~ /^.*? +(.+)/; my $right_of_space = $1; # Keep what is in the group in parens print "[$right_of_space]\n";