I am trying to parse the following data, and cannot seem to figure out how I can do this with RegEx.
Here are two examples:
Cash Svcs Db/Cr Dep Adjust, Org Dep Amt= .00,
Cash Svcs Db/Cr Dep Adjust, Org Dep Amt= 1,129.86,
There is more data after this, but I want it to pull everything between the "=" and the comma after the amount.
Thank you!
Solved! Go to Solution.
Try this expression, in parse method if using the RegEx tool (or replace with $1 if using Replace or a RegEx formula):
^.*=\s([0-9,]*\.\d{2}),.*
Between the parentheses, it will give you all numbers & commas it finds after the = (with a space \s), and before the decimal, and will then include the two digits after that \d{2}. Everything from the comma following will be excluded.
Let me know if that works!
Cheers,
NJ
Hi Ben!
The format always follows: x,xxx.xx, unless it is under $1, in the case of the first example, which shows .00, with no leading zero. I could always remove all commas from the data before starting with regex as well.
Thank you!
This worked great! Thank you!!