Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
re.findall(r'(\b[a-zA-Z][a-zA-Z0-9-]*)(?=\.com\b)', DATA)
この行はPHPでどのようになりますか?
私はあなたが探していると思いますpreg_match_all。
preg_match_all
preg_match_all('/(\b[a-zA-Z][a-zA-Z0-9-]*)(?=.com\b)/',$data,$matches);
http://php.net/preg_match_allをチェックすることをお勧めします