I Think You are Finding Something Like This
Use Matches Activity for Regex To Get Total Value,
And pass Read PDF Text activity output variable as an input of Matches activity.
To get second occurence of Total Value use This Expression
MatchList(1)
Hope it Helps.
Let me Know if you have any queries.
Regards,
Saloni