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.
単語の数字の前に部分文字列を抽出したい。たとえば、から取得ibmするにはibm0987323123123a、何か提案はありますか?
ibm
ibm0987323123123a
preg_match('/^[a-z]*/i', "ibm0987323123123a", $matches); print_r($matches);