[note] find a way to write a regular expression of PHP

<li class=""><a href="/admin/reimburse1?ref=addtabs" addtabs="131" url="/admin/reimburse1" py="dwsh" pinyin="danweishenhe"><i class="fa fa-circle-o fa-fw"></i> <span></span> <span class="pull-right-container"> </span></a> </li><li class=""><a href="/admin/reimburse?ref=addtabs" addtabs="125" url="/admin/reimburse" py="fybx" pinyin="feiyongbaoxiao"><i class="fa fa-circle-o fa-fw"></i> <span></span> <span class="pull-right-container"> </span></a> </li>

you need to extract the contents of the first < li class= "" >:

<li class=""><a href="/admin/reimburse1?ref=addtabs" addtabs="131" url="/admin/reimburse1" py="dwsh" pinyin="danweishenhe"><i class="fa fa-circle-o fa-fw"></i> <span></span> <span class="pull-right-container"> </span></a> </li>

preg_match_all("/(<li class="">(.*?)<\/li>)/i", $str, $matches, PREG_PATTERN_ORDER);
    echo $matches[1][0];
Mar.30,2021

/ (? < = < li class= ">) (. *?) (? = ) / I

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e45ec4-43aeb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e45ec4-43aeb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?