I have a largely unfinished project where I wrote some Javascript to scan text for Chapter - Verse strings and return them.
The functionality isn't great, but the regular expressions work just fine.
The source code is here: https://github.com/beandog/lds-scriptures.js