Question
Virtusa
US
Last activity: 31 Dec 2019 11:01 EST
RUTA Script - Policy Number
Hi ,
Could you please help me with RUTA script to extract policy number from below sentence .
example :
1. XXXXX is my policy number
2. My Policy Number is XXXXXX
3. XXXXX is My new Policy
4. Policy : XXXXX
Script needs to check for word "policy" and needs to extract numberic which comes before or after the word .
I have one script which can extract numerics after the key word , but i also need to extract before the key word also (like XXXXX is my policy number )
example :
W{REGEXP("(?i)(policy)")}
ANY[0,1]?
NUM{REGEXP(".....") -> MARK(EntityType,3)};