Difference between revisions of "Regex"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(9 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
[[wikipedia:regex]] (1951) | [[wikipedia:regex]] (1951) | ||
+ | * [[or]] | | ||
− | + | === [[Ansible]] === | |
− | + | - [[lineinfile]]: | |
− | |||
− | [[Ansible]] | ||
− | - lineinfile: | ||
path: [[/etc/default/sysstat]] | path: [[/etc/default/sysstat]] | ||
state: present | state: present | ||
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]] | ||
− | Python | + | === Python === |
import [[re]] | import [[re]] | ||
+ | |||
+ | [[regex.match]] | ||
[[java.util.regex]] | [[java.util.regex]] | ||
+ | |||
+ | * [[Ruby]]: https://rubular.com/ | ||
+ | |||
+ | |||
+ | |||
+ | * [[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: