Skip to content

Conversation

@raghavs046
Copy link
Contributor

This action will allow users to define a Regex and Text. The action will replace all the patterns matching regex in the given text.

Example: This flow action can be used to find and replace any sys_ids coming through inbound emails.
Example Input :
Regex: [a-z0-9]{32} // sys_id regex
Text Value: 534af435a324c235425635535643 // sample text


Inputs:

  1. Name = Regex , field type = String , Mandatory
= true
  2. Name = Text , field type = String , Mandatory
= true
  3. Name = Replacing String , field type = String , Mandatory
= true

Output:

  1. Name= Replaced Text , field type = String

@github-actions
Copy link

github-actions bot commented Oct 4, 2025

Valid PR for ActionPack

Thank you for your contribution. This PR complies with the CONTRIBUTING.md.
A maintainer will review this shortly. In the meantime, Happy Hacking!

@raghavs046
Copy link
Contributor Author

Created again, previous one was closed due to invalid file

@raghavs046 raghavs046 changed the title Replace text with regex Replace text with matching Regex Oct 4, 2025
@rohi-v rohi-v self-assigned this Oct 4, 2025
@am-shakeel am-shakeel assigned am-shakeel and unassigned rohi-v Oct 4, 2025
@am-shakeel am-shakeel closed this Oct 4, 2025
@am-shakeel am-shakeel reopened this Oct 4, 2025
@am-shakeel
Copy link
Contributor

We already have regexutils available with the same underlying logic. The only difference in this case is the regex expression being used, which can be provided as an input to the existing utility method.

Therefore, this appears to be just an example rather than a new enhancement.

@am-shakeel am-shakeel closed this Oct 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants