Difference between revisions of "Regex"
Jump to navigation
Jump to search
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[wikipedia:regex]] (1951) | [[wikipedia:regex]] (1951) | ||
+ | * [[or]] | | ||
− | + | === [[Ansible]] === | |
− | |||
− | |||
− | [[Ansible]] | ||
- [[lineinfile]]: | - [[lineinfile]]: | ||
path: [[/etc/default/sysstat]] | path: [[/etc/default/sysstat]] | ||
Line 13: | Line 11: | ||
line: 'ENABLED="true"' | line: 'ENABLED="true"' | ||
− | [[JavaScript]] | + | [[insertafter:]] |
+ | |||
+ | === [[JavaScript]] === | ||
[[npm install escape-string-regexp]] | [[npm install escape-string-regexp]] | ||
[[ansi-regex]] | [[ansi-regex]] | ||
− | Python | + | === Python === |
import [[re]] | import [[re]] | ||
Line 29: | Line 29: | ||
+ | * [[pipe]] | ||
== See also == | == See also == |
Latest revision as of 12:27, 3 October 2024
wikipedia:regex (1951)
- or |
Contents
Ansible[edit]
- lineinfile: path: /etc/default/sysstat state: present backrefs: yes regexp: '^ENABLED="false"' line: 'ENABLED="true"'
insertafter:
JavaScript[edit]
npm install escape-string-regexp ansi-regex
Python[edit]
import re
regex.match
java.util.regex
See also[edit]
- Regex, Re, ansi-regex
- Programming: C, Python,
go
,loop
,while
,for
,if
,variable
, Error handling, Regex, Function, IDE, await, R (programming language), XACML, Type, Class inheritance, Methods, Scheme, Array, Deserialization
Advertising: