Browse Source

Words "not" added for clarity. (#16)

Thanks @GegznaV -- As these are three separate regular expressions (`\W` `\D` `\S`), so I suggest adding "not" before each explanation to stress their meaning.
main
Vilmantas Gegzna 7 years ago
parent
commit
996215d455
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      data-raw/cheatsheet.R

+ 1
- 1
data-raw/cheatsheet.R View File

~category, ~group, ~regexp, ~text, ~category, ~group, ~regexp, ~text,
"character classes", "regular", "<code>.</code>", "any character except newline", "character classes", "regular", "<code>.</code>", "any character except newline",
"character classes", "regular", "<code>\\w</code> <code>\\d</code> <code>\\s</code>", "word, digit, whitespace", "character classes", "regular", "<code>\\w</code> <code>\\d</code> <code>\\s</code>", "word, digit, whitespace",
"character classes", "regular", "<code>\\W</code> <code>\\D</code> <code>\\S</code>", "not word, digit, whitespace",
"character classes", "regular", "<code>\\W</code> <code>\\D</code> <code>\\S</code>", "not word, not digit, not whitespace",
"character classes", "regular", "<code>\\p{property name}</code>", "matches character with unicode property, like <code>\\p{Uppercase}</code>, see <a href=\"http://www.unicode.org/reports/tr44/#Property_Index.\">unicode property list</a> (not supported by <em>regexplain</em>).", "character classes", "regular", "<code>\\p{property name}</code>", "matches character with unicode property, like <code>\\p{Uppercase}</code>, see <a href=\"http://www.unicode.org/reports/tr44/#Property_Index.\">unicode property list</a> (not supported by <em>regexplain</em>).",
"character classes", "regular", "<code>[abc]</code>", "any of a, b or c", "character classes", "regular", "<code>[abc]</code>", "any of a, b or c",
"character classes", "regular", "<code>[^abc]</code>", "not a, b, or c", "character classes", "regular", "<code>[^abc]</code>", "not a, b, or c",

Loading…
Cancel
Save