Skip to main content
Question

Regex Different Result FME vs Online

  • Feb 21, 2023 12:04 PM UTC
  • 3 replies
  • 63 views

tiztrain
Contributor
Forum|alt.badge.img+6

I am building a simple regex expression which extracts the letters of the alphabet including the letters with accents. What I am having trouble with is using FME's regex editor vs the online one and the conflicts.

 

The example below I have screenshots of regex101 online and FME regex editor and they both show different results for the expression:

[a-zA-Z\\sčćđšž]+

 

RegexExpressionsFMERegexExpressionsRegex101I need help understanding why is this and what to do to get around this issue?

Also, how do you apply regex flags?

3 replies

ebygomm
Evangelist
Forum|alt.badge.img+54
  • Evangelist
  • Feb 21, 2023 12:53 PM UTC

Have you actually tried running the regex? I think this is an error in the regex editor only and running will give you the same result as you see in regex101


david_r
Celebrity
  • Feb 21, 2023 12:53 PM UTC

Looks like there's a small bug in the test string preview. When you try running the regex in FME, it should work as expected.


tiztrain
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • Feb 21, 2023 1:25 PM UTC

Using 2021.1 workbench so it has probably been fixed. Spent so much time trying to figure it out and this is all it is ha. Thanks guys