Đã hoàn thành

135717 function noLiveLinks($txt)

I need the following PHP function to be implemented, ideally by using a regex.

I need this within the next few hours, which should be easily doable.

function noLiveLinks($txt) {

// take the $txt which may have hyperlinks (a tags)

// convert all hyperlinks into the following:

// anchor text (URL)

// they hyperlink won't be live anymore,

// but will have the URL in parenthesis after the anchor text.

// return the fixed $txt


You need to account for various attributes which may be present in the a tag (such as target=) and for single, double, or no quotes around the href in the tag.

Also, honor case -- so that if the anchor text started with a capital letter in the original, it will in the returned text as well.

Kĩ năng: Bất kì công việc gì, PHP

Xem nhiều hơn: using regex in c, regex in c, regex &, txt, Regex, php regex, php function , function, regex tag, regex php, regex anchor tag, regex convert, convert regex, php anchor, php anchor text, php function convert url, function convert url php, convert hyperlink, php function convert php, account function, php hyperlinks, convert php function, using regex, txt php convert, txt convert php

Về Bên Thuê:
( 29 nhận xét ) Raleigh, United States

ID dự án: #1881889

Được trao cho:


Please see the PMB.

$25 USD trong 1 ngày
(2 Đánh Giá)