My regex so far is (?<=_)[a-zA-Z0-9]+\b
The input text is:
Calculate the _area of the _perfectRectangle object.
The _id and _age variables are both integers.
__invalidVariable _evenMoreInvalidVariable_ _validVariable
The output should be:
area,perfectRectangle
id,age
validVariable
But instead is:
area,perfectRectangle
id,age
invalidVariable,validVariable