Skip to content

Latest commit

 

History

History
36 lines (32 loc) · 1.43 KB

File metadata and controls

36 lines (32 loc) · 1.43 KB
title ms.custom ms.date ms.prod ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs ms.assetid caps.latest.revision author ms.author manager
Expected ')' in regular expression (JavaScript) | Microsoft Docs
01/18/2017
windows-client-threshold
javascript
article
VS.WebClient.Help.SCRIPT5020
JavaScript
TypeScript
DHTML
2087ba1d-9783-4d40-b609-e8542f579f7f
7
mikejo5000
mikejo
ghogen

Expected ')' in regular expression (JavaScript)

You attempted to create a regular expression capture, assertion, or group, but did not include the closing parenthesis. Parentheses have several purposes in regular expressions. Primarily, they are used to capture sub-expressions, to specify assertions, or to group patterns together so that the items can be treated as a single unit by *, +, ?, and so on.

To correct this error

  • Add the rightmost closing parentheses.

    [!NOTE] If you want to match a single parenthesis, escape it with a backslash - \( - so that it is not interpreted as a special character by [!INCLUDEjavascript].

See Also

Regular Expression Object
Regular Expression Syntax (JavaScript)