Difference between revisions of "Regex"
Jump to navigation
Jump to search
(4 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 12: | Line 10: | ||
[[regexp]]: '[[^]]ENABLED="false"' | [[regexp]]: '[[^]]ENABLED="false"' | ||
line: 'ENABLED="true"' | line: 'ENABLED="true"' | ||
+ | |||
+ | [[insertafter:]] | ||
=== [[JavaScript]] === | === [[JavaScript]] === | ||
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: