Tutorial by Topics: expressions

var regExp = RegExp(r'^(.*)$', multiLine: true, caseSensitive: false); ParameterDetailsString sourceThe regular expression as a String{bool multiline}Whether this is a multiline regular expression. (matches ^ and $ at the beginning and end of each line individually not the whole String){bool...
$ shopt -u option # Deactivate Bash's built-in 'option' $ shopt -s option # Activate Bash's built-in 'option' Character Classes Valid character classes for the [] glob are defined by the POSIX standard: alnum alpha ascii blank cntrl digit graph lower print punct space upper word xdig...
Because regular expressions are limited to either a regular grammar or a context-free grammar, there are many common misuses of regular expressions. So in this topic there are a few example of when you should NOT use regular expressions, but use your favorite language instead. Some people, when...
regexp ?switches? exp string ?matchVar? ?subMatchVar subMatchVar ...? regsub ?switches? exp string subSpec ?varName? This topic is not intended to discuss regular expressions themselves. There are many resources on the internet explaining regular expressions and tools to help build regul...
Regular expressions (also called "regex" or "regexp") define patterns that can be matched against a string. Type ?regex for the official R documentation and see the Regex Docs for more details. The most important 'gotcha' that will not be learned in the SO regex/topics is that mo...
execute :h pattern to see a lot of regex related information
'text' -match 'RegExPattern' 'text' -replace 'RegExPattern', 'newvalue' [regex]::Match("text","pattern") #Single match [regex]::Matches("text","pattern") #Multiple matches [regex]::Replace("text","pattern","newvalue") ...
Closures Lambda expressions will implicitly capture variables used and create a closure. A closure is a function along with some state context. The compiler will generate a closure whenever a lambda expression 'encloses' a value from its surrounding context. E.g. when the following is executed...
Expressions in Java are the primary construct for doing calculations. For a reference on the operators that can be used in expressions, see Operators.
A regular expression is a powerful way of specifying a pattern for a complex search.

Page 2 of 3