История изменений
Исправление loz, (текущая версия) :
Регулярки это мелочи:
>> parse "[Tue Feb 10 20:22:57 2015] [info] id: 17, text: Hello" [ "[" copy date to "]" thru "id: " copy id to "," to end]
== true
>> date
== "Tue Feb 10 20:22:57 2015"
>> id
== "17"
>>
Исправление loz, :
Регулярки это мелочи:
>> parse "[Tue Feb 10 20:22:57 2015] [info] id: 17, text: Hello" [ "[" copy date to "]" "]" thru "id: " copy id to "," to end]
== true
>> date
== "Tue Feb 10 20:22:57 2015"
>> id
== "17"
>>
Исходная версия loz, :
Регулярки это мелочи:
>> parse "[Tue Feb 10 20:22:57 2015] [info] id: 17, text: Hello" [ "[" copy date to "]" "]" thru "id: " copy id to "," "," to end]
== true
>> date
== "Tue Feb 10 20:22:57 2015"
>> id
== "17"
>>