I have a very complicated output from a function, which i need to use specific word from it.
For example, my output is:
oracle 11257 1 0 14:01 ? 00:00:00 ora_pmon_sas
I need to get just "sas" word, which is next to "ora_pmon_"
Another example:
oracle 6187 1 0 13:41 ? 00:00:00 ora_pmon_db2
I need to get "db2". So what should be my expression?
JAVA code:
insArray=line.split("what will be between these quotes?");
input.substring(input.lastIndexOf('ora_pmon_') + 1)will do the trick...