Đang Thực Hiện

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 thêm: txt, regex, php regex, 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, account function, php hyperlinks, convert php function, using regex, txt php convert, txt convert php, convert function php, php attributes function, convert function, function regex

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

Mã Dự Án: #1881889

Đã trao cho:

DLitz

Please see the PMB.

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