Skip to main content
matthewb37678304
Participating Frequently
April 28, 2017
Answered

GREP – Need a way to find all Instances of "Plate" preceeded by a word with a capital letter

  • April 28, 2017
  • 2 replies
  • 659 views

Hi all,

I'm really struggling to work this one out and I feel like I need a double lookbehind or something crazy. I need to assign a No Break to every instance of "Xxxx Plate". The names of the plates are somewhat abstract so I'm defining them as any word preceding the word "Plate" that has a capital letter in it. So it would No Break "Lovely Plate", "Sooper Plate" but not "our Plates" or "this particular Plate".

(?<=\<)\u seems to find the capital letter in the words, but I want the space after it, and only if that space is proceeded by the word Plate.

I'm lost, basically. I've been going round and round and can't work out a solution. Not even close, tbh.

Any help would be hugely appreciated.

Matt

This topic has been closed for replies.
Correct answer Obi-wan Kenobi

\b\u[\w-]+\hPlate\b

(^/)

2 replies

Obi-wan Kenobi
Obi-wan KenobiCorrect answer
Legend
April 28, 2017

\b\u[\w-]+\hPlate\b

(^/)

matthewb37678304
Participating Frequently
April 28, 2017

Ask I suspected, I was a million miles away. Thank you for your help, I'll deconstruct it so I know better next time.

uniqued_tol
Inspiring
April 28, 2017

\b\u.+?\b\h\bPlate\b