[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: LPEG: captures
- From: Alexander Mashin <alex.mashin@...>
- Date: Thu, 28 May 2015 14:52:27 +0700
After applying it (re.match) to the example line "Perhaps,
>> [[Peter|Simon]], or [[Paul]], so they say", I got:
>>
>> table { 1 = Perhaps, [[Peter|Simon]], or [[Paul]], so they say 2 =
>> table { 1 = Peter 2 = Paul separator = , } }
> If you give me sample input, pattern, desired output, and actual
> output, I might be able to help.
Mr Parke, I would be grateful.
This is the input:
Perhaps, [[Peter|Simon]], or [[Paul]], so they say (see [[:Apocrypha]])
This is the desired output:
table {
full = Perhaps, [[Name::Peter|Simon]], or [[Name::Paul]], so they say
(see [[:Apocrypha]])
items = table {
1 = Peter,
2 = Paul
}
separator = ,
}
Alexander Mashin