in reply to Re^4: search pattern with digits
in thread search pattern with digits
For the example you have given where you always want to capture a number after or before "rows rejected"
will capture the last number before a given search string or if there isn't one the first number after the string. Note givenqr{(?| \Q$string\E [^\d]* (\d+) | (\d+) [^\d]* \Q$string\E ) }x
it will match 23456.records processed 23456, total rows rejected 567
What is the input when one row is rejected? Is it
or1 rows rejected
Know your data;)1 row rejected
|
|---|