ezis Posted March 1, 2013 Report Posted March 1, 2013 (edited) Vai ir iespējams, ja ir, tad kā, izmantot pirmo atrasto sakritību turpat meklēšanas patternā? Tekstā būs identifikatori, lai noteiktu kaut kam sākumu un beigas. Piem.: this:start random teksts this:end kaut kas that:start vēl vairāk teksta that:end Doma ir izmantot preg_match_all. preg_replace replace patternā var norādīt tos $1 etc., bet vai tas ir izdarāms matchojot, turpat, search patternā? Edited March 1, 2013 by ezis
ezis Posted March 1, 2013 Author Report Posted March 1, 2013 esmu tizls http://www.php.net/manual/en/regexp.reference.back-references.php Lūdzu slēgt tēmu!
Recommended Posts