On Wed, Aug 10, 2016 at 12:44 AM, Bináris <[email protected]> wrote:
> Hi,
> does anyone have a good regex for chemical formulae?
>
> These samples below were found with
> \d,\d,\d\S+-\d-\S+
> which seems pretty good in not matching falses (every match is OK), but I
> don't know how many matches are left out.

You could find gaps in your regex by using a regex like
/(IUPACName|IUPACnév|MásNév|Szinoníma) *=\(.*\))$/ to grab potential
matches, and then testing your regex on \1 .  That should show you any
cases that your regex is not matching.

-- 
John Vandenberg

_______________________________________________
pywikibot mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot

Reply via email to