Help with Regular Expression
Posted: 31 Dec 2020 05:08
I'm parsing a GEDCOM file. I want to find lines beginning with '2 DATE' or '2 PLAC'. The following expression works:
I'd like to combine this into one expression. I tried this:
but it doesn't work. Can somebody help? I'm really bad at this regular expression stuff. 
Thanks,
Shosh
Code: Select all
sLine:match("^2 DATE") or sLine:match("^2 PLAC)Code: Select all
sLine:match("^2 (DATE|PLAC)")Thanks,
Shosh