Question

1
Replies
159
Views
Close popover
Miloslaw Frey (Miloslaw)
PEGA
Lead System Architect
Pegasystems Inc.
DE
Miloslaw Member since 2015 6 posts
PEGA
Posted: April 10, 2020
Last activity: April 15, 2020
Closed

RUTA entity extraction: regex

Hi,

I have the following entity extraction model:

DECLARE VarA;
DECLARE VarB;

NUM{REGEXP("([0-9]{8}|[0-9]{6})") -> MARK(VarA)}
"-" 
NUM{REGEXP("....") -> MARK(VarB),MARK(EntityType,1,3), UNMARK(VarA), UNMARK(VarB)};

This should mark entities which have the fllowing format: a number (8 or 6 digits) , dash ("-") and a number (4 digits).

It works fine, when the entity is within the paragraph, but doesn't work when the entity stays alone in a text line (see attachment). Adding any character in front or after the examined string makes it work again (see another screenshot).

What is missing?

Thanks, Miloslaw

 

***Edited by Moderator Marissa to update Content Type from Discussion to Question***

Pega Platform 8.4 Data Integration
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.