Episode 55: GREP Alpha Breaks in Lists
Learn how to use GREP to describe all items in a list that begin with the same letter, then insert a space between and/or add an alphabetical heading to each alpha group. Covers GREP Find/Change, wildcard/location/found text metacharacters, character sets, marking subexpressions, and backreferences (an undocumented feature).
Watch the episode here (23:22), or you can subscribe via iTunes.
You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.
April 27th, 2015 at 10:54 am
Welcome back Michael.
April 27th, 2015 at 3:16 pm
Welcome back! What a nice return with this amazing GREP tutorial.
We missed you…
April 28th, 2015 at 2:05 am
Nice trick. You can match the last line without a return by moving \r to the beginning of the marking subexpression.
^([A-Z]).+(\r\1.+)*
If you are a hard core regex geek you can do it all in one step using this less-than-elegant expression that ignores “The “, “A “, and “An “:
^(?:(?:The|An?) )?([A-Z]).+(\r(?:(?:The|An?) )?\1.+)*
May 1st, 2015 at 10:14 pm
I am sooooo glad to see you are back!
Thank you, thank you, thank you! 🙂
Oh!, and welcome back! 😉
May 1st, 2015 at 10:29 pm
Thanks. I’ve wanted to get back to this for a long time. It feels good to finally be doing the podcast again.
May 4th, 2015 at 12:59 pm
Good to see you back! Keep em coming! 🙂
May 5th, 2015 at 6:27 pm
Probably the best video podcast on the planet.
Everyone in the world should watch these to see how they are done the right way. =)
May 20th, 2015 at 4:48 pm
So glad to see you have returned. I agree with Lucia, “keep em coming”!
May 25th, 2015 at 12:02 pm
Welcome back. Which is the next episode? I can´t wait for it. I love grep. Do you can make more themes with grep?
June 13th, 2015 at 3:26 pm
I’m soooo curious about the list of Grep searches saved in your list (at 20:14)…
Welcome back, hope to see you around more frequently, I’ve learned A LOT from your Grep advices 😉
July 15th, 2015 at 4:27 am
Welcome back! 🙂
July 31st, 2015 at 6:27 am
Great to have you back Michael – Look forward to more great movies and info. I’ve still got my copy of your CS4 InDesign Styles book by the side of my desk!
September 21st, 2015 at 3:35 pm
I still refer to your podcast whenever teaching InDesign. My wish list has for a very long time and includes you doing more courses for Lynda.com.