Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Regex Rules - #500

Closed
rich-howell opened this issue Jan 22, 2023 · 6 comments
Closed

[Feature] Regex Rules - #500

rich-howell opened this issue Jan 22, 2023 · 6 comments
Labels
feature This issue is a feature request help wanted Extra attention is needed needs votes Please upvote this feature request if you would like to see it implemented! rules Related to rules

Comments

@rich-howell
Copy link
Contributor

Discussed in https://github.com/actualbudget/actual/discussions/395

Originally posted by snovak December 1, 2022
I think it would be very powerful to introduce Regex matching, or some simple pattern matching, for Rules.

Here is a mockup of what the UI might look like. The two bottom rules should achieve the same result with far less configuration.
RuleMatches

@rich-howell rich-howell added enhancement rules Related to rules feature This issue is a feature request labels Jan 22, 2023
@MatissJanis MatissJanis added help wanted Extra attention is needed and removed needs triage labels Feb 10, 2023
@Bryce-MW
Copy link

Additionally, it would be very useful to be able to use captures from the regex in the actions. I have quite a few rules checking for notes is DEPOSIT;XYZ;Electronic Funds Transfer -> set payee to XYZ because my bank doesn't always set the payee. Though of course this would be more difficult to implement. I can take a look at some point but I don't exactly use JS often.

@MatissJanis MatissJanis added feature This issue is a feature request and removed feature This issue is a feature request labels May 1, 2023
@github-actions github-actions bot added the needs votes Please upvote this feature request if you would like to see it implemented! label May 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented May 1, 2023

✨ Thanks for sharing your idea! ✨

This repository is now using lodash style issue management for enhancements. This means enhancement issues will now be closed instead of leaving them open. This doesn’t mean we don’t accept feature requests, though! We will consider implementing ones that receive many upvotes, and we welcome contributions for any feature requests marked as needing votes (just post a comment first so we can help you make a successful contribution).

The enhancement backlog can be found here: https://github.com/actualbudget/actual/issues?q=label%3A%22needs+votes%22+sort%3Areactions-%2B1-desc+

Don’t forget to upvote the top comment with 👍!

@quangkieu
Copy link

quangkieu commented Apr 30, 2024

From reading the code, Actual "contains" rules is already sql "like" function, which use "_" for single char wildcard, % for multiple character wildcard. I do not see any escape character so right now you would not able to search for literly % or _

@esseti
Copy link
Contributor

esseti commented Jul 9, 2024

Will this also be able to do a rule to remove, or partially remove, a string from notes or allow to use the groups in the output?
such as:

Payment via ATM DATE-TIME OP. 02-07-2024 12.17.00 GAMESTOP" -> "[02-07-2024 12.17.00] GAMESTOP"

@CrazyKidJack
Copy link

CrazyKidJack commented Sep 13, 2024

I think the regex part of this has already been implemented for "Imported Payee" and "Notes".
It'd still ben ice to have it in the other fields.

And +💯 for the regex captures and backreferences idea

@DenizUgur
Copy link

Not sure if it's related to this feature as well but having the ability to use RegEx match groups would be fantastic. For example, I have intra-account transfers marked with a 4-digit transfer code on the payee, and receiving transactions makes that available in the notes. So matching those numbers via regex would be a godsend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue is a feature request help wanted Extra attention is needed needs votes Please upvote this feature request if you would like to see it implemented! rules Related to rules
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants