---
sourceDocument: Australia API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/api-reference

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Using Java syntax in Javascript regex

# Using Java syntax in JavaScript regular expressions {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

The enhanced regex engine includes an additional flag to allow Java syntax to be used
in JavaScript regular expressions.
Regular expressions with the additional flag work in all places that expect a regular
expression, such as `String.prototype.split` and
`String.prototype.replace`. To use Java syntax in a regular expression, use
the Java inline flag j, for example `/(?ims)ex(am)ple/j`  
{#r_JvSyntxJaScrRegex__table_kqz_trn_cr__entry__2}

| Flag | Description |
|-|-|
| j | Defines a regular expression that executes using the Java regular expression engine. It can be used to access Java-only features of regular expressions (such as look behind, negative look behind) or to use Java regular expressions without translating them into JavaScript regular expressions. For example: `var regex = /ex(am)ple/j;` |
[Tabelle : 1. Extended regular expression flags]

{#r_JvSyntxJaScrRegex__table_kqz_trn_cr}

