[Feature] Add Regex in Rules actions #2690

Closed
opened 2026-02-28 20:24:34 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @hrv231 on GitHub (Dec 6, 2025).

Verified feature request does not already exist?

  • I have searched and found no existing issue

💻

  • Would you like to implement this feature?

Pitch: what problem are you trying to solve?

I'm trying to use regex in the rules for actions, I know it is already in the rules conditions, but it is missing in the rules actions.
Example:
Let's say that I want to replace all my notes that have a #1234 with # 1234 , basically adding an space in the middle.

For this task, I will use matches in the conditions to match 3 groups, and then in the actions I will replace the notes with group 1 and group 2, then I will add the rest of the notes content in the append with group 3.

If regex were in both, there are a lot of things we could do with notes.

Describe your ideal solution to this problem

A picture is better to describe this:

Image

Teaching and learning

docs

Originally created by @hrv231 on GitHub (Dec 6, 2025). ### Verified feature request does not already exist? - [x] I have searched and found no existing issue ### 💻 - [ ] Would you like to implement this feature? ### Pitch: what problem are you trying to solve? I'm trying to use regex in the rules for actions, I know it is already in the rules conditions, but it is missing in the rules actions. Example: Let's say that I want to replace all my notes that have a `#1234` with `# 1234` , basically adding an space in the middle. For this task, I will use matches in the conditions to match 3 groups, and then in the actions I will replace the notes with group 1 and group 2, then I will add the rest of the notes content in the append with group 3. If regex were in both, there are a lot of things we could do with notes. ### Describe your ideal solution to this problem A picture is better to describe this: <img width="912" height="396" alt="Image" src="https://github.com/user-attachments/assets/0a78e8d2-9913-49e9-92bd-0980977b59b3" /> ### Teaching and learning docs
GiteaMirror added the needs votesfeature labels 2026-02-28 20:24:34 -06:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 6, 2025):

Thanks for sharing your idea!

This repository uses a voting-based system for feature requests. While enhancement issues are automatically closed, we still welcome feature requests! The voting system helps us gauge community interest in potential features. We also encourage community contributions for any feature requests marked as needing votes (just post a comment first so we can help guide you toward 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 👍!

@github-actions[bot] commented on GitHub (Dec 6, 2025): :sparkles: Thanks for sharing your idea! :sparkles: This repository uses a voting-based system for feature requests. While enhancement issues are automatically closed, we still welcome feature requests! The voting system helps us gauge community interest in potential features. We also encourage community contributions for any feature requests marked as needing votes (just post a comment first so we can help guide you toward 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 👍! <!-- feature-auto-close-comment -->
Author
Owner

@db-src commented on GitHub (Dec 7, 2025):

Probably doable with rule action templating:
https://actualbudget.org/docs/experimental/rule-templating/ - see Text section. I've definitely done simple single replacements (really, removals or reassortments) with that and imagine your example should be feasible.

@db-src commented on GitHub (Dec 7, 2025): Probably doable with rule action templating: https://actualbudget.org/docs/experimental/rule-templating/ - see Text section. I've definitely done simple single replacements (really, removals or reassortments) with that and imagine your example should be feasible.
Author
Owner

@hrv231 commented on GitHub (Dec 9, 2025):

Probably doable with rule action templating: https://actualbudget.org/docs/experimental/rule-templating/ - see Text section. I've definitely done simple single replacements (really, removals or reassortments) with that and imagine your example should be feasible.

Thank you for helping with this.
I was able to do it with regex, I'm attaching a screenshot in case someone in the future is looking to do the same.

Image
@hrv231 commented on GitHub (Dec 9, 2025): > Probably doable with rule action templating: https://actualbudget.org/docs/experimental/rule-templating/ - see Text section. I've definitely done simple single replacements (really, removals or reassortments) with that and imagine your example should be feasible. Thank you for helping with this. I was able to do it with regex, I'm attaching a screenshot in case someone in the future is looking to do the same. <img width="1579" height="293" alt="Image" src="https://github.com/user-attachments/assets/08ded468-61e5-47fe-9b54-e40ee6f73408" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#2690