Quote:
Originally Posted by mrmikel
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.
|
Code fragment:
I chose the range: 2 thru 5 of not whitespace
You would need to do the rest