Difference between revisions of "Regex"
Jump to navigation
Jump to search
(Created page with "wikipedia:regex") Tags: Mobile web edit, Mobile edit |
|||
(17 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | [[wikipedia:regex]] | + | [[wikipedia:regex]] (1951) |
+ | |||
+ | * [[or]] | | ||
+ | |||
+ | === [[Ansible]] === | ||
+ | - [[lineinfile]]: | ||
+ | path: [[/etc/default/sysstat]] | ||
+ | state: present | ||
+ | [[backrefs]]: yes | ||
+ | [[regexp]]: '[[^]]ENABLED="false"' | ||
+ | line: 'ENABLED="true"' | ||
+ | |||
+ | [[insertafter:]] | ||
+ | |||
+ | === [[JavaScript]] === | ||
+ | [[npm install escape-string-regexp]] | ||
+ | [[ansi-regex]] | ||
+ | |||
+ | === Python === | ||
+ | import [[re]] | ||
+ | |||
+ | [[regex.match]] | ||
+ | |||
+ | [[java.util.regex]] | ||
+ | |||
+ | |||
+ | * [[Ruby]]: https://rubular.com/ | ||
+ | |||
+ | |||
+ | |||
+ | * [[pipe]] | ||
+ | |||
+ | == See also == | ||
+ | * {{regex}} | ||
+ | * {{programming}} | ||
+ | |||
+ | [[Category:Linux]] |
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: