grel general expression character classes
\p{L} - letter
\p{P} - punctuation
\p{InBasicLatin} - in basic Latin Unicode block
\p{InArabic} - in Arabic Unicode block
. any character (almost*)
\ escape character
| or
\A or ^ anchor: start of string
\Z or $ anchor: end of string
[] list or range to be matched
[^] negative list or range (NOT these characters)
\d any digit
\D any non-digit
\w any word character [a-zA-Z0-9_]
\W any non-word char. [^a-zA-Z0-9_]
\s any whitespace char.
\S any non-whitespace char.
\t tab
\n newline
\r carriage return
* metacharacters
* character escapes \
* anchors \A\Z or ^$
* character classes [][^]
* quantifiers *?+{min,max}
* grouping ()
* substitutions $1 or \1
Also in JavaScript:
- javascript class static method
- filter 2d array javascript
- angular redirect to external url
- nodejs hello world
- preventive vs reactive
- mongoose find and update prop
- javascript iterate over json
- js remove special characters
- discord.js set playing tag
- Javascript is object array
- how to add carousel in javascript
- react native new project mac
- Uncaught ReferenceError: Vue is not defined
- can we import jquery library from developer tools
- how to version a react app azure pipelines
- js filter items by index
- .append js
- import dropdown react
- react-native init AwesomeProject change port
- jest mock call
- jstree select all visible node only
- node mailer office 365
- ERROR in ./node_modules/tns-core-modules/ui/core/view/view.js Module not found: Error: Can't resolve '@nativescript/core/ui/core/view/view' in '/home/deepali/projects/supersquad-client/node_modules/tns-core-modules/ui/core/view'
- how to update value in nested json using id in javascript