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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -