Indesign GREP code
This is the information I have in hand:
==== Sample Data
Heading: This is heading one and contains info about blah blah. Heading 2: This is heading number two which talks about blah blah. Heading 3: Yet another heading. Heading 4: One more heading for so and so. Heading: Again one heading. Heading infinity: The is never ending heading.
==== Sample Data
This is the grep code I m using:
\w+(?:\s\w+)*\s?:
The code is working fine, however, I am not able to understand the code. The code was generated by me using help from someone. Can any one help explaining? The code select all the headings (be it single word or multiple words) including ":". Whats confusing me is the non capturing group with \w+ within paranthesis.
Any alternative code would also be appreciated.
Thanks
