以前にASPクラシックでコーディングしたことがあり、実際には同じではないので、私はPHPに少し慣れています
次のテキストを含む 3 つの文字列があります。
$str1 = "is simply dummy text of the printing $$ 6/4r $$ and typesetting industry"
$str2 = "is simply dummy text of the printing $$ 11/11tr $$ and typesetting industry"
$str3 = "is simply dummy text of the printing $$ 15/6 $$ and typesetting industry"
を取得する6/4r
にはどうすればよいですか?11/11tr
15/6
- 検索のようなものだと思います
$$
- 次の文字はスペースですか?
- 次の文字は数字ですか?
- 次の文字は '/' ですか?
これらがすべて当てはまる場合、それを取得6/4r
して別の変数に入れたいと思います。
PHPでこれを行うにはどうすればよいですか?