ECMAScript feature: regular expression pattern modifiers

Traditionally, we could only apply regular expression flags such as i (for ignoring case) to all of a regular expression. The ECMAScript feature “Regular Expression Pattern Modifiers” (by Ron Buckton) enables us to apply them to only part of a regular …


This content originally appeared on 2ality – JavaScript and more and was authored by Dr. Axel Rauschmayer

Traditionally, we could only apply regular expression flags such as i (for ignoring case) to all of a regular expression. The ECMAScript feature “Regular Expression Pattern Modifiers” (by Ron Buckton) enables us to apply them to only part of a regular expression. In this blog post we examine how they work and what their use cases are.

Regular expression pattern modifiers attributes reached stage 4 in October 2024 and will probably be part of ECMAScript 2025.


This content originally appeared on 2ality – JavaScript and more and was authored by Dr. Axel Rauschmayer


Print Share Comment Cite Upload Translate Updates
APA

Dr. Axel Rauschmayer | Sciencx (2025-01-10T00:00:00+00:00) ECMAScript feature: regular expression pattern modifiers. Retrieved from https://www.scien.cx/2025/01/10/ecmascript-feature-regular-expression-pattern-modifiers/

MLA
" » ECMAScript feature: regular expression pattern modifiers." Dr. Axel Rauschmayer | Sciencx - Friday January 10, 2025, https://www.scien.cx/2025/01/10/ecmascript-feature-regular-expression-pattern-modifiers/
HARVARD
Dr. Axel Rauschmayer | Sciencx Friday January 10, 2025 » ECMAScript feature: regular expression pattern modifiers., viewed ,<https://www.scien.cx/2025/01/10/ecmascript-feature-regular-expression-pattern-modifiers/>
VANCOUVER
Dr. Axel Rauschmayer | Sciencx - » ECMAScript feature: regular expression pattern modifiers. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/01/10/ecmascript-feature-regular-expression-pattern-modifiers/
CHICAGO
" » ECMAScript feature: regular expression pattern modifiers." Dr. Axel Rauschmayer | Sciencx - Accessed . https://www.scien.cx/2025/01/10/ecmascript-feature-regular-expression-pattern-modifiers/
IEEE
" » ECMAScript feature: regular expression pattern modifiers." Dr. Axel Rauschmayer | Sciencx [Online]. Available: https://www.scien.cx/2025/01/10/ecmascript-feature-regular-expression-pattern-modifiers/. [Accessed: ]
rf:citation
» ECMAScript feature: regular expression pattern modifiers | Dr. Axel Rauschmayer | Sciencx | https://www.scien.cx/2025/01/10/ecmascript-feature-regular-expression-pattern-modifiers/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.