im using this regex to extract salaries from a file containing many different lines of text:
/(£|\€|GBP)\s*?(.)*?(pro-rata|\x28pro-rata\x29)/i
The test cases are like this:
"Relevant Quantity Surveying construction drawings Salary: £36,999 (pro-rata) in accordance with standard construction terms ..."
It matches:
- £36,999 pro-rata
- €36,999 pro-rata
- GBP 36,999 pro-rata
But all matches of parenthesized 'pro-rata' are missing the right parenthtisis - i.e :
£36,999 (pro-rata
any ideas what wrong with this???