lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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