Marpa as a front end to [the regular expression engine of your choice]?
Yes, It's quite doable and something I'd like to see written.
Whether or not a BNF grammar describes a regular expression is
decidable, and not terribly hard to determine in fact. Ironically, a
Marpa grammar might be a way of making parsing with big regular
expressions more feasible, by making them more readable and maintainable.
Marpa parsing as itself would still have the advantage in error
reporting, however. But some apps would lend themselves to a dual approach.
1.) Have Marpa write a regex, which will run faster than the Marpa
Earley engine on success.
2.) But on failure, reparse with Marpa's own engine to pinpoint the
exact problem.
-- jeffrey