I think you will have to insert a special character like En space before the Bold, and the use Nested style with:
None up to En space
Bold up to (
Hope it helps
Try this one: find \u[\x20\u]+?(?=\()
In other words,
\u Capital followed by
[\x20\u]+ one or more of a space (\x20) or a captial
(?=\x20\() followed by a space and an opening parenthesis -- but don't capture the spece and parenthesis
In the Change format panel, set bold.
@ Peter K,
Doesn't the ? after the + sign following the class limit this to shortest match? My reading of the original post would indicate you want to pick up all of the uppercase words before the parentheses.
You need to capture up to the first parenthesis, so you need the shortest match up to the that first paren. That what I thought anyway (and it works correctly), but now that I try your suggestion, that works too. And the reason why it works is that [\x20\u]+ doesn't get past anything that's not a capital or a space. Naturally, only when you do .+ do you need the shortest match.
Thank you all guys!! It works!!
I've changed it a little bit cause there are some cases where I need an alphanumeric code to be bold: