You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A bunch of my transactions have been imported with a "Description" like: Check #1234 and "Memo" like: Check #1234 USD special other Transfer:Withdrawal:Check, but with no actual check number in the "Check#" field. I thought the Find and Replace extension might have been able to help, but it seems like I can only replace the check field with a static value (i.e. the same one for each matched transaction).
I'd like to use the regex: =^Check #([0-9]+).*$ in the "Free Text" field on the "Find" side, and then use something like $1 in the "Check#" field in the "Replace" side.
It looks like if one uses the "Found text only" checkbox, then indeed the code does:
and so one would be able to use captured groups in the replacement text. However, the originalText referenced there is the original text of the field being replaced (the "Check#" in my case), not the field that originally matched the pattern being used (the "Description" or "Memo" field in my case). Since all my check fields are currently empty, they'll never match the regex used to match the transaction.
Would it be possible to use the Matcher object that successfully matched the original transaction as the one used for the replaceAll call?
The text was updated successfully, but these errors were encountered:
A bunch of my transactions have been imported with a "Description" like:
Check #1234
and "Memo" like:Check #1234 USD special other Transfer:Withdrawal:Check
, but with no actual check number in the "Check#" field. I thought the Find and Replace extension might have been able to help, but it seems like I can only replace the check field with a static value (i.e. the same one for each matched transaction).I'd like to use the regex:
=^Check #([0-9]+).*$
in the "Free Text" field on the "Find" side, and then use something like$1
in the "Check#" field in the "Replace" side.It looks like if one uses the "Found text only" checkbox, then indeed the code does:
moneydance_open/src/com/moneydance/modules/features/findandreplace/ReplaceCommand.java
Lines 401 to 406 in 65732cb
and so one would be able to use captured groups in the replacement text. However, the
originalText
referenced there is the original text of the field being replaced (the "Check#" in my case), not the field that originally matched the pattern being used (the "Description" or "Memo" field in my case). Since all my check fields are currently empty, they'll never match the regex used to match the transaction.Would it be possible to use the
Matcher
object that successfully matched the original transaction as the one used for thereplaceAll
call?The text was updated successfully, but these errors were encountered: