2 Replies Latest reply on Feb 1, 2017 9:39 AM by Jay Morehart

    Regex to match a string after colon ":"

    Aleks Roth

      I need to identify a sub string from any string based on a regular expression.

       

      For Example, take the following strings:

      1. It sent a notice of delivery of goods: UserName1

      2. Sent a notice of delivery of the goods: User is not found, UserName2

      3. It sent a notice of receipt of the goods: UserName1

      4. It sent a notice of receipt of the goods: User is not found, UserName2

       

      I want to get the text after colon

      1.  UserName1

      2.  User is not found, UserName2

      3.  UserName1

      4.  User is not found, UserName2