Saturday, 15 June 2013

php - Regex, one occurrence between two differents delimiters -



php - Regex, one occurrence between two differents delimiters -

i'd have regex select between not-included characters delimiters ``` , i. want first occurrence.

here wrong seek (very new regex) :

(^`)[\s\s](i$)?

/(?<=`).*?(?=i)/s

this regex backtick, not include it. match can, first character.

the difference between reply , @vks's reply mine require there ending delimiter.

php regex

No comments:

Post a Comment