I have a string like this:
component.kw1_tap/rt (path/to/file1/kw1) (path/to/file2/kw2)
I am able to remove the unwanted chars and produce a clean string like this:
component kw1 tap rt path to file1 kw1 path to file2 kw2
now i want to remove everything but kw1 and kw2, so my final string should be:
kw1 kw2
Thank you.
EDIT: the strings can change and the position of keywords(kw) can change also.