Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

173
Views
Outlook Add-ins regex - exclusions

I am trying to write an extension, which will highlight some words in email (Contextual Add-in). For example, I need to highlight "under" word, but not "underscore". I tried to use that regex construction - under(?!score), but it didn't work, despite the fact it generally works in regex testers. Do you know how to implement that regex in Office Add-in? Thanks.

UPD: I realised, that I didn't provide all necessary data. Code with regex is in manifest.xml of Office Add-in.

Regex part is:

<ExtensionPoint xsi:type="DetectedEntity">
   <Label resid="contextLabel" />
       <SourceLocation resid="ITermUrl" />
       <Rule xsi:type="RuleCollection" Mode="And">
          <Rule xsi:type="ItemIs" ItemType="Message" />
          <Rule xsi:type="ItemHasRegularExpressionMatch" RegExName="ITerm" RegExValue="under(?!score)" PropertyName="BodyAsPlaintext" IgnoreCase="true" />
       </Rule>
</ExtensionPoint>

Result is:

Office add-in work result

I don't want to highlight "underscore". Only "under" or "under score".

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!