sas - Ignore part of sentence with regex -
what i'm trying ignore parts of sentence regex. i'm working getting last value of sentence:
gleason score 3+4=7
what's important part of bigger picture, regex gets part of sentence, why i'm looking value 7.
per i've got regex mark whole sentence:
gleason score\s+\d.\d.\d
is there whay can latest value?
thanks.
you use pattern
[^=]+$
explanation:
[^=] # character not in [=] class + # (one or more)(greedy) $ # end of string/line
Comments
Post a Comment