I'm trying to use entities to get a match on some data, and the regex seems like it doesn't really match well with other similar engines in Python or even sites like regexr.com. Here some examples:
Pattern: ([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}-[\w]{3})
String style to match: 83123e42-d9ad-a26a-b13f-b0ec91c7fedf-ABC
However, when testing this out, it gets:
@id:83123e42
@id:d9ad
@id:a26a
@id:b13f
@id:b0ec91c7fedf
@id:ABC
I've tried grouping the whole string, using string delimiters, escaping the hypens, using .{4}-
instead of \w, but all to no solid result, and often getting the exact same matching where it splits it into groups rather than one full match.
Is this a regex issue? I tried not grouping the whole string, but seem to keep running into the exact same issue, where it won't even find the last 3 letters anyway.
If Watson Assistant uses a different regex engine, is there a place with documentation that I just haven't been able to find? They seem to just assume that any normal regex will work, but skipping the hypens is strange behavior.