I have lines that start with a number followed by a space, a key and then the value. I need only the value. The problem is that my regex returns the HOLE line instead of only the value.
lines example:
1 NAME Bob /Cox/
1 SEX M
1 FAMS @F1@
regex:
/^(?=1\s[\w]*\s)[\w\W\s]*/
Did i misunderstood how "positive lookahead" works?