JMeter, the most popular open-source performance testing tool, can work with regular expressions, with the Regular Expression Extractor.
Regular expressions are used to Match/extract a required part of the text
The Following Example Demonstrates the extraction of Username and Password from the web Application :
$1$because we are referring to the second link with the first group.
Match No as 2.