Skip to main content
Question

how to use regex to capture string and create attribute


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.

 

 

 

 

 

2 replies

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

david_r
Evangelist
  • 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:


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings