Главная
Study mode:
on
1
Intro
2
Quick intro to Unicode
3
The ES6 u flag for regular expressions
4
Unicode code point escapes
5
u flag disallows useless backslash escapes
6
Impact on the operator
7
Impact on character classes
8
Impact on character class escapes
9
Impact on the i flag
10
Impact on HTML documents
11
Support for the u flag
12
Transpiling E56 Unicode regular expressions to ES5
13
regexpu internals
14
Matching predefined Unicode categories/scripts/blocks
15
Takeaways
Description:
Explore the intricacies of Unicode in JavaScript regular expressions in this JSConf EU 2015 talk by Mathias Bynens. Dive into the challenges developers face with Unicode in ECMAScript 5 and discover how ES6 (ECMAScript 2015) addresses these issues. Learn about the new 'u' flag for regular expressions, its impact on various regex operations, and how it improves Unicode handling. Understand the implications for HTML documents and learn how to transpile ES6 Unicode regular expressions to ES5. Gain insights into matching predefined Unicode categories, scripts, and blocks. By the end of this 25-minute presentation, acquire the knowledge to create Unicode-aware regular expressions in JavaScript with confidence, enhancing your ability to handle international user input and perform accurate string manipulation.

RegExp.prototype.unicode - How ES6 Makes JavaScript Regular Expressions Unicode-Aware

JSConf
Add to list
0:00 / 0:00