thanks for the kind helps.
do you know what the expression in { } stands for?

^(\S+) - - \[(\S+).*\] \"GET (.*?/)\s+



On 2018/7/12 星期四 PM 8:37, Илья Рассадин wrote:
"m{ pattern }" is regular expression to parse log string.

It's equal to just "/ pattern /". Using different delimiter is convenient here because usually symbol "/" must be escaped with backslash "\", but if we use another delimiter - we can left "/" symbol unescaped and reges is more readable.

You can further explore regex with this site https://regex101.com/r/4CGCcB/2

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to