Regexp for extracting a mailto: address

后端 未结 5 842
醉梦人生
醉梦人生 2020-12-12 02:29

I\'d like a reg exp which can take a block of string, and find the strings matching the format:

....
5条回答
  •  渐次进展
    2020-12-12 03:27

    You can work with the internal PHP filter http://us3.php.net/manual/en/book.filter.php

    (they have one which is specially there for validating or sanitizing email -> FILTER_VALIDATE_EMAIL)

    Greets

提交回复
热议问题