extract all email address from a text using c#

后端 未结 5 559
终归单人心
终归单人心 2020-12-12 21:52

Is there a way to extract all email addresses from a plain text using C# .

For example

my email address is mrrame@gmail.com and his email is

5条回答
  •  再見小時候
    2020-12-12 22:50

    If you don't want it to match perfect email addresses, don't use a regular expression that matches perfect email addresses.

    The regular expression you are using will match on the start of the line (^) and the end of the line ($), so if you remove those it will not filter with them.

提交回复
热议问题