View Single Post
Old 10-02-2014, 02:18 PM   #1
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Regex for next "n" characters

I use h3 for headers for chapters. I would like to be able to make an id using regex.

I would like to take the next 5-7 characters out of the heading following <h3> and make it <h3 id="next5characters">. I suppose I could rename all the chapters so I could make an HTML TOC more easily, but this seems less work, if it can be made to work.

Thanks.
mrmikel is offline   Reply With Quote