Is there any way to, using regular expression, return the nth occurrence? I did search the forums and only found solution that goes beyond regular expression itself (i.e. ne
for nth match use this pattern (?:.*?\$[0-9.]+){XX}.*?(\$[0-9.]+) where XX = n-1
(?:.*?\$[0-9.]+){XX}.*?(\$[0-9.]+)
XX = n-1
Example for 3rd match