I have a string in java like:
"Corrected Acceleration 20130816_053116_RCS2_21 GNS Science"
I am looking to get the last part of the number sequence. It is the number after the last underscore.
In this case:
21
More examples are
"Corrected Acceleration 20130346_053116_RCS2_15 GNS Science"
Want 15
"Corrected Acceleration 20130346_053116_RCS2_13 GNS Science"
Want 13
"Acceleration 123214_05312323_RCS2_40 GNS Science"
Want 40
This format will stay the same. The variations will be different numbers and possibly the front substring Corrected
might be missing.
How would I go about extracting this?