Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

174
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda