Keep It Simple, Stupid | |
PerlMonks |
Re: Call for code samples!by jepri (Parson) |
on Nov 15, 2001 at 19:36 UTC ( [id://125587]=note: print w/replies, xml ) | Need Help?? |
This is probably the nastiest regex I ever had to use. It's goal was to highlight Extended Letter Sequences in text. The ELS had already been found, this routine went through and turned the letters of the hidden word into uppercase. This is just a 'capitalise every nth letter' challenge, and I cheated by stripping out the spaces first:
The output looks like this:
BTW if there's an obviously better way to do this I'd be delighted to hear about it. ____________________
In Section
Meditations
|
|