Regular Expressions in JavaScript
How to create regex in JavaScript?
- Literal notation
- Constructor function
RegExp methods and properties
- exec()
- test()
- lastIndex
String methods that support regex
- match()
- matchAll()
- replace()
- replaceAll()
- search()
- split()