Brian Ipsen wrote: > The xxxxx is numbers - right now, there are 6 digits, but I assume the > length could be 5-8 digits.. > > >>Here's a variant assuming it's always a 7-digit number: >> >>body LOCAL_JGH /\bJGH Ref\.: \d{7}\b/ > > >>Here's one assuming a 5-8 digit alphanumeric (underscores >>allowed too, but no other punctuation) >> >>body LOCAL_JGH /\bJGH Ref\.: \w{5,8}\b/ > > > Seems like the one i need .. Thank you very much :-)
That should work fine.. If you want to be more specific you can replace the \w with \d, which will only match numbers, but that's probably not necessary.