0

This is the pattern for recognizing an email value for the entity in IBM Watson.

\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b

Can you please elaborate it why below terms are used here:

\b
{2, }
chughts
  • 4,210
  • 2
  • 14
  • 27
  • Are you referring to the SAMPLE pattern shown here? https://cloud.ibm.com/docs/services/assistant?topic=assistant-entities#entities-patterns – data_henrik Dec 18 '19 at 14:35

1 Answers1

1

This is actually a regex question.

\b indicates word boundaries

{2,} means repeat the previous at least twice. In your case the previous being any upper and lower case alphabetic characters.

chughts
  • 4,210
  • 2
  • 14
  • 27