I am a beginner to regex, and cannot understand well how to proceed on the following task. Imagine there is a code with words like follows: "object.foo" and "object.bar()". I am interested to gather all words after the dot preceded by the word "object". The raw text is available here. May you help me write a bash code to collect these words?
Best regards,
Bruno Peixoto
>Solution :
You could try a positive lookbehind: (?<=object\.)\w* to find all words preceded by object..
Apart from that, I would suggest you look at Regex basics on regex101.com or regexr.com, as pointed out in the comments.