Useful Test Automation Regex
This post contains few example regex that i used in test automation.
To get only number from the string
\d+
To get just amount value
([0-9]+[\\.,0-9]*)
To get first 5 characters from a string
^.{5}
To get the text of btw two strings
(?<=Reference is )(.*)(?= and)