Skip to main content
Question

how to use regex to capture string and create attribute

  • March 10, 2020
  • 2 replies
  • 68 views

Forum|alt.badge.img

I am trying to find a string with regex and put it in an attribute. I have used the stringReplacer, but this means I would have to search for what I don't want to capture and replace it with nothing so that what is left is the string I want to capture.

It seems as though capture-groups do not capture strings for subsequent use in fme.

 

 

 

 

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • March 10, 2020
Try the string searcher instead

david_r
Celebrity
  • 8392 replies
  • March 10, 2020

Also, you need to specify a list name for the regex capture groups, otherwise you won't find them in the output: