بکندباز

استخراج تمام URL های تگ لینک درون یک کد html

url های درون یک کد html درون تگ های a و درون ویژگی href این تگ ها قرار می گیرد.

یعنی تمام متن هایی که بین دو علامت ” بعد از کلمه href قرار می گیرند باید استخراج شوند.

نکته: در صورتی که جای url خالی یا لینک به یک آیدی درون صفحه (با علامت #) باشد نباید استخراج شود.


از طریق فیلد زیر می توانید پاسخ خود را ثبت کنید. توجه داشته باشید که پس از تأیید اتوماتیک، الگو ها یکبار دیگر به صورت دستی نیز تصحیح و بررسی خواهند شد. الگوی شما باید به صورت جامع و نه فقط برای تست های داده شده کاربردی باشد.

پاسخ های کاربران به این تمرین (7 پاسخ)

پاسخ تمرینات ریجکس سطح متوسط و سخت فقط برای اعضای ویژه سایت قابل مشاهده است.
Amin امتیاز:‌ 12186

برای مشاهده پاسخ باید ابتدا وارد شده و قفل پاسخ را باز کنید

0 0
14 فروردين 1403
shayan0081 امتیاز:‌ 5910

برای مشاهده پاسخ باید ابتدا وارد شده و قفل پاسخ را باز کنید

0 0
20 آذر 1402
aliahmadi98 امتیاز:‌ 7285

برای مشاهده پاسخ باید ابتدا وارد شده و قفل پاسخ را باز کنید

0 0
27 آبان 1402
Dragon امتیاز:‌ 3606

برای مشاهده پاسخ باید ابتدا وارد شده و قفل پاسخ را باز کنید

0 0
4 شهريور 1402
user-IoQl امتیاز:‌ 2247

برای مشاهده پاسخ باید ابتدا وارد شده و قفل پاسخ را باز کنید

0 0
8 مرداد 1402
Aliak امتیاز:‌ 8621

برای مشاهده پاسخ باید ابتدا وارد شده و قفل پاسخ را باز کنید

0 0
30 تير 1402
zohreh امتیاز:‌ 3656

برای مشاهده پاسخ باید ابتدا وارد شده و قفل پاسخ را باز کنید

0 0
20 خرداد 1402
/ /g
<div class=" widget-last-posts"><ul class="list-group"> <li class="list-group-item"> <a href="https://backendbaz.ir/regex-code-extract-image-urls-from-html-cdoe/" title="کد regex: استخراج تمام تصاویر از یک کد html"> <h4 class="post-title">کد regex: استخراج تمام تصاویر از یک کد html</h4> </a> </li> <li class="list-group-item"> <a href="https://backendbaz.ir/how-to-insert-spaces-tabs-in-text-using-html-css/" title="چگونه با استفاده از HTML/CSS فاصله خالی یا Tab در متن وارد کنیم؟"> <h4 class="post-title">چگونه با استفاده از HTML/CSS فاصله خالی یا Tab در متن وارد کنیم؟</h4> </a> </li> <li class="list-group-item"> <a href="https://backendbaz.ir/php-string-func-htmlentities/" title="تابع ()htmlentities در PHP"> <h4 class="post-title">تابع ()htmlentities در PHP</h4> </a> </li> <li class="list-group-item"> <a href="https://backendbaz.ir/php-string-func-html-entity-decode/" title="تابع ()html_entity_decode در PHP"> <h4 class="post-title">تابع ()html_entity_decode در PHP</h4> </a> </li> <li class="list-group-item"> <a href="#" title="ساخت جدول در html فقط با استفاده از تگ div"> <h4 class="post-title">ساخت جدول در html فقط با استفاده از تگ div</h4> </a> </li> </ul> </div>
<div class=" widget-last-posts"><ul class="list-group"> <li class="list-group-item"> <a href="https://backendbaz.ir/regex-code-extract-image-urls-from-html-cdoe/" title="کد regex: استخراج تمام تصاویر از یک کد html"> <h4 class="post-title">کد regex: استخراج تمام تصاویر از یک کد html</h4> </a> </li> <li class="list-group-item"> <a href="https://backendbaz.ir/how-to-insert-spaces-tabs-in-text-using-html-css/" title="چگونه با استفاده از HTML/CSS فاصله خالی یا Tab در متن وارد کنیم؟"> <h4 class="post-title">چگونه با استفاده از HTML/CSS فاصله خالی یا Tab در متن وارد کنیم؟</h4> </a> </li> <li class="list-group-item"> <a href="https://backendbaz.ir/php-string-func-htmlentities/" title="تابع ()htmlentities در PHP"> <h4 class="post-title">تابع ()htmlentities در PHP</h4> </a> </li> <li class="list-group-item"> <a href="https://backendbaz.ir/php-string-func-html-entity-decode/" title="تابع ()html_entity_decode در PHP"> <h4 class="post-title">تابع ()html_entity_decode در PHP</h4> </a> </li> <li class="list-group-item"> <a href="#" title="ساخت جدول در html فقط با استفاده از تگ div"> <h4 class="post-title">ساخت جدول در html فقط با استفاده از تگ div</h4> </a> </li> </ul> </div>
<div id="cbest-week-users-3" class="widget_best-week-users widget card"><header class="card-header"><h3 class="card-title">فعال ترین های هفته اخیر</h3></header> <table class="table table-bordered"> <thead> <tr> <th>برنامه نویس</th> <th>امتیاز</th> </tr> </thead> <tbody> <tr style=""> <td style="width: 80%;"> <a href="/profile/2413/user-mqtz" class="w-100"> <img src="https://secure.gravatar.com/avatar/?s=96&d=mm&r=g" class="rounded-circle" style="width: 45px; height: 45px; object-fit: cover"> <span>user-mqtz</span> </a> </td> <td style="width: 20%;">1080</td> </tr> <tr style=""> <td style="width: 80%;"> <a href="/profile/2954/mantix" class="w-100"> <img src="https://backendbaz.ir/wp-content/plugins/za_projects_timer/avatars/1679917994_wp7190509.webp" class="rounded-circle" style="width: 45px; height: 45px; object-fit: cover"> <span>mantix</span> </a> </td> <td style="width: 20%;">825</td> </tr> <tr style=""> <td style="width: 80%;"> <a href="/profile/3338/mohamad0232" class="w-100"> <img src="https://backendbaz.ir/wp-content/plugins/za_projects_timer/avatars/1684786691_Jowhareh_galleries_poster_60486368-56ed-4fcc-b5f9-ee84002c7712.jpeg" class="rounded-circle" style="width: 45px; height: 45px; object-fit: cover"> <span>mohamad0232</span> </a> </td> <td style="width: 20%;">445</td> </tr> <tr style=""> <td style="width: 80%;"> <a href="/profile/3277/Ali" class="w-100"> <img src="https://secure.gravatar.com/avatar/7fb07e946d8a535d42cc91b87e162ef7?s=96&d=mm&r=g" class="rounded-circle" style="width: 45px; height: 45px; object-fit: cover"> <span>Ali</span> </a> </td> <td style="width: 20%;">252</td> </tr> <tr style=""> <td style="width: 80%;"> <a href="/profile/3066/MahyarAz" class="w-100"> <img src="https://secure.gravatar.com/avatar/3457b19145f5f35004a9badb1df26f5d?s=96&d=mm&r=g" class="rounded-circle" style="width: 45px; height: 45px; object-fit: cover"> <span>MahyarAz</span> </a> </td> <td style="width: 20%;"><a href="">215</a></td> </tr> </tbody> </table> </div>
<div id="cbest-week-users-3" class="widget_best-week-users widget card"><header class="card-header"><h3 class="card-title">فعال ترین های هفته اخیر</h3></header> <table class="table table-bordered"> <thead> <tr> <th>برنامه نویس</th> <th>امتیاز</th> </tr> </thead> <tbody> <tr style=""> <td style="width: 80%;"> <a href="/profile/2413/user-mqtz" class="w-100"> <img src="https://secure.gravatar.com/avatar/?s=96&d=mm&r=g" class="rounded-circle" style="width: 45px; height: 45px; object-fit: cover"> <span>user-mqtz</span> </a> </td> <td style="width: 20%;">1080</td> </tr> <tr style=""> <td style="width: 80%;"> <a href="/profile/2954/mantix" class="w-100"> <img src="https://backendbaz.ir/wp-content/plugins/za_projects_timer/avatars/1679917994_wp7190509.webp" class="rounded-circle" style="width: 45px; height: 45px; object-fit: cover"> <span>mantix</span> </a> </td> <td style="width: 20%;">825</td> </tr> <tr style=""> <td style="width: 80%;"> <a href="/profile/3338/mohamad0232" class="w-100"> <img src="https://backendbaz.ir/wp-content/plugins/za_projects_timer/avatars/1684786691_Jowhareh_galleries_poster_60486368-56ed-4fcc-b5f9-ee84002c7712.jpeg" class="rounded-circle" style="width: 45px; height: 45px; object-fit: cover"> <span>mohamad0232</span> </a> </td> <td style="width: 20%;">445</td> </tr> <tr style=""> <td style="width: 80%;"> <a href="/profile/3277/Ali" class="w-100"> <img src="https://secure.gravatar.com/avatar/7fb07e946d8a535d42cc91b87e162ef7?s=96&d=mm&r=g" class="rounded-circle" style="width: 45px; height: 45px; object-fit: cover"> <span>Ali</span> </a> </td> <td style="width: 20%;">252</td> </tr> <tr style=""> <td style="width: 80%;"> <a href="/profile/3066/MahyarAz" class="w-100"> <img src="https://secure.gravatar.com/avatar/3457b19145f5f35004a9badb1df26f5d?s=96&d=mm&r=g" class="rounded-circle" style="width: 45px; height: 45px; object-fit: cover"> <span>MahyarAz</span> </a> </td> <td style="width: 20%;"><a href="">215</a></td> </tr> </tbody> </table> </div>