Informacije

Https sis cat com

Https sis cat com


We are searching data for your request:

Forums and discussions:
Manuals and reference books:
Data from registers:
Wait the end of the search in all databases.
Upon completion, a link will appear to access the found materials.

Https sis cat com-b-c net-r-r-a-l

sis.com/f/t/h/l/r/r/r/

Želio bih uskladiti:

sis.com/f/t/h/l/r/r/r/

sa

$match_count = 3,

Evo šta sam do sada probao:

$url ='sis.com/f/t/h/l/r/r/r/',

preg_match('/sis.com/(f|h|l|r|r)/', $url, $matches, PREG_OFFSET_CAPTURE),

echo $matches[1][0],

O:

Ovo bi trebalo da uradi:

$url ='sis.com/f/t/h/l/r/r/r/',

preg_match('/(sis.com/f|sis.com/h|sis.com/l|sis.com/r)/', $url, $podudaranja, PREG_OFFSET_CAPTURE),

// Izlazi:

// niz (

// 0 =>, niz (

// 0 =>, 0,

// 1 =>, 25,

// 2 =>, 29,

// ),

// 1 =>, niz (

// 0 =>, 30,

// 1 =>, 37,

// 2 =>, 45,

// ),

// )

Demo.

Imajte na umu da je / podrazumevani graničnik za preg_match, tako da ga možete ukloniti iz šablona.

EDIT: Ažurirao sam obrazac da uklonim potrebu za PREG_OFFSET_CAPTURE.


Video, Sitemap-Video, Sitemap-Videos