I am working on a chat bot which requires the user to enter a lot of unique id. For example account number or complaint number similar to xx0934345, xa237472834, xb3453
To extract these id I made use of regular expressions and it works too but what i really don’t understand is regarding examples. According to some forum post the regex needs some examples to work but that won’t works as expected. Example I have given few examples like
- my account number is xa4538475
- xa223423904 is my account number
- compliant id xc23423
- compaint request id is xc3242384
Model based on these example will only extract patterns like xa23423 or xc678678 but examples like xk324234 or xu234234 or xo234234 will not work since there are no similar example in the NLU data. As per my regex it should identify and extract all patterns which starts with two alphabet followed by numbers.