The following is throwing an error even though it is a valid reference.
import pythonbible as bible
text = "Philemon 1:9"
references = bible.get_references(text)
It is because the regular expression for the book of Philippians returns a match for this because it finds the abbreviation "Phil". We need to still support that abbreviation in Philippian's regular expression but only if it is not immediately followed by "emon".
The following is throwing an error even though it is a valid reference.
It is because the regular expression for the book of Philippians returns a match for this because it finds the abbreviation "Phil". We need to still support that abbreviation in Philippian's regular expression but only if it is not immediately followed by "emon".