<?php
namespace PhpLife\App\Api\Controller;
use PhpLife\App\Api\Controller;
use PHPMailer\PHPMailer\Exception;
use PHPMailer\PHPMailer\PHPMailer;

class Test extends Controller
{

    public function main()
    {
        $str='第01集$https://new.jsyunbf.com/20180114/PJ31o1AI/index.m3u8#第02集$https://new.jsyunbf.com/20180114/tOjQoagu/index.m3u8#第03集$https://new.jsyunbf.com/20180121/Z8YLjxyu/index.m3u8#第04集$https://new.jsyunbf.com/20180128/jAeiNPXT/index.m3u8#第05集$https://new.jsyunbf.com/20180204/hnoTrcM9/index.m3u8#第06集$https://new.jsyunbf.com/20180212/xps8IZmh/index.m3u8#第07集$https://new.jsyunbf.com/20180218/FkS7Rg1W/index.m3u8#第08集$https://new.jsyunbf.com/20180225/JMODzClF/index.m3u8#第09集$https://new.jsyunbf.com/20180304/fty4brZX/index.m3u8#第10集$https://new.jsyunbf.com/20180311/bvPZVPRD/index.m3u8#第11集$https://dy2.jsyunbf.com/20180325/VDmVdyzZ/index.m3u8#第12集$https://dy2.jsyunbf.com/20180325/hytlUKE0/index.m3u8#第12.5集$https://dy2.jsyunbf.com/20180402/G0Nr8SLR/index.m3u8#第13集$https://new.jsyunbf.com/20180409/J0zM7E4D/index.m3u8#第14集$https://videos3.jsyunbf.com/2018/04/18/Q7WW1jStEPTsQPrD/playlist.m3u8#第15集$https://videos3.jsyunbf.com/2018/04/22/WzA4P9edSptQXjP1/playlist.m3u8#第16集$https://videos3.jsyunbf.com/2018/04/29/qNn8vG7WKa7eoBQU/playlist.m3u8#第17集$https://videos3.jsyunbf.com/2018/05/06/KADh11ModSXszj0I/playlist.m3u8#第18集$https://videos3.jsyunbf.com/2018/05/20/NtxrUxVdQquVW2X2/playlist.m3u8#第19集$https://videos3.jsyunbf.com/2018/05/20/aN5U0lHJnpzXmUZi/playlist.m3u8#第20集$https://dy2.jsyunbf.com/20180526/U09PfiGb/index.m3u821null';
        $pat="@第(\d+)集@";
        preg_match_all($pat, $str,$arr);
        var_dump($arr);
    }


}