Logo
全部
加密
转换
Web
图片
开发
网络
数学
文本

转模块

  • json

    json

  • base64

    base64

  • timestamp

    timestamp

  • urlEncoder

    urlEncoder

  • password

    password

  • textDiff

    textDiff

  • wordCounter

    wordCounter

  • markdownPreview

    markdownPreview

  • imageCompressor

    imageCompressor

  • excalidraw

    excalidraw

  • uuidGenerator

    uuidGenerator

  • tokenGenerator

    tokenGenerator

  • hashText

    hashText

  • bcrypt

    bcrypt

  • ulidGenerator

    ulidGenerator

  • encryption

    encryption

  • bip39Generator

    bip39Generator

  • hmacGenerator

    hmacGenerator

  • rsaKeyPairGenerator

    rsaKeyPairGenerator

  • passwordStrengthAnalyser

    passwordStrengthAnalyser

  • pdfSignatureChecker

    pdfSignatureChecker

  • dateTimeConverter

    dateTimeConverter

  • integerBaseConverter

    integerBaseConverter

  • romanNumeralConverter

    romanNumeralConverter

  • base64FileConverter

    base64FileConverter

  • colorConverter

    colorConverter

  • caseConverter

    caseConverter

  • textToNatoAlphabet

    textToNatoAlphabet

  • textToBinary

    textToBinary

  • textToUnicode

    textToUnicode

  • yamlToJsonConverter

    yamlToJsonConverter

  • yamlToToml

    yamlToToml

  • jsonToYamlConverter

    jsonToYamlConverter

  • jsonToToml

    jsonToToml

  • tomlToJson

    tomlToJson

  • tomlToYaml

    tomlToYaml

  • xmlToJson

    xmlToJson

  • jsonToXml

    jsonToXml

  • listConverter

    listConverter

  • htmlEntities

    htmlEntities

  • urlParser

    urlParser

  • deviceInformation

    deviceInformation

  • basicAuthGenerator

    basicAuthGenerator

  • metaTagGenerator

    metaTagGenerator

  • otpCodeGeneratorAndValidator

    otpCodeGeneratorAndValidator

  • mimeTypes

    mimeTypes

  • jwtParser

    jwtParser

  • keycodeInfo

    keycodeInfo

  • slugifyString

    slugifyString

  • htmlWysiwygEditor

    htmlWysiwygEditor

  • userAgentParser

    userAgentParser

  • httpStatusCodes

    httpStatusCodes

  • jsonDiff

    jsonDiff

  • safelinkDecoder

    safelinkDecoder

  • gitMemo

    gitMemo

  • randomPortGenerator

    randomPortGenerator

  • crontabGenerator

    crontabGenerator

  • jsonMinify

    jsonMinify

  • jsonToCsv

    jsonToCsv

  • sqlPrettify

    sqlPrettify

  • chmodCalculator

    chmodCalculator

  • dockerRunToDockerComposeConverter

    dockerRunToDockerComposeConverter

  • xmlFormatter

    xmlFormatter

  • yamlViewer

    yamlViewer

  • emailNormalizer

    emailNormalizer

  • regexTester

    regexTester

  • 正则表达式速查

    正则表达式语法参考手册

  • ipv4SubnetCalculator

    ipv4SubnetCalculator

  • ipv4AddressConverter

    ipv4AddressConverter

  • ipv4RangeExpander

    ipv4RangeExpander

  • macAddressLookup

    macAddressLookup

  • macAddressGenerator

    macAddressGenerator

  • ipv6UlaGenerator

    ipv6UlaGenerator

  • qrCodeGenerator

    qrCodeGenerator

  • wifiQrCodeGenerator

    wifiQrCodeGenerator

  • svgPlaceholderGenerator

    svgPlaceholderGenerator

  • cameraRecorder

    cameraRecorder

  • mathEvaluator

    mathEvaluator

  • etaCalculator

    etaCalculator

  • percentageCalculator

    percentageCalculator

  • chronometer

    chronometer

  • temperatureConverter

    temperatureConverter

  • byteUnitConverter

    byteUnitConverter

  • benchmarkBuilder

    benchmarkBuilder

  • loremIpsumGenerator

    loremIpsumGenerator

  • emojiPicker

    emojiPicker

  • stringObfuscator

    stringObfuscator

  • numeronymGenerator

    numeronymGenerator

  • asciiTextDrawer

    asciiTextDrawer

  • phoneParserAndFormatter

    phoneParserAndFormatter

  • ibanValidatorAndParser

    ibanValidatorAndParser

MCP

正则表达式速查

Character Classes

12 items

.

Any character except newline

e.g. a.c → "abc", "a1c"
\w

Word character [a-zA-Z0-9_]

e.g. \w+ → "hello", "foo_bar"
\W

Non-word character

e.g. \W → " ", "!"
\d

Digit [0-9]

e.g. \d+ → "123"
\D

Non-digit

e.g. \D+ → "abc"
\s

Whitespace (space, tab, newline)

e.g. \s+ → " ", "\t"
\S

Non-whitespace

e.g. \S+ → "hello"
[abc]

Character set — matches a, b, or c

e.g. [aeiou] → "a"
[^abc]

Negated set — not a, b, or c

e.g. [^aeiou] → "b"
[a-z]

Range — any lowercase letter

e.g. [a-z]+ → "hello"
[A-Z]

Range — any uppercase letter

e.g. [A-Z]+ → "HELLO"
[0-9]

Range — any digit

e.g. [0-9]+ → "123"
Anchors

6 items

^

Start of string (or line with m flag)

e.g. ^Hello → "Hello world"
$

End of string (or line with m flag)

e.g. world$ → "Hello world"
\b

Word boundary

e.g. \bword\b → "a word here"
\B

Non-word boundary

e.g. \Bord → "word"
\A

Start of string (no multiline)

e.g. \AHello
\Z

End of string

e.g. world\Z
Escaped Characters

6 items

\.

Escaped dot (literal .)

e.g. 3\.14 → "3.14"
\*

Escaped asterisk

e.g. 1\+1 → "1+1"
\n

Newline

e.g. line1\nline2
\t

Tab

e.g. col1\tcol2
\r

Carriage return

e.g. \r\n
\0

Null character

e.g. abc\0
Groups & Lookahead

8 items

(abc)

Capture group

e.g. (foo)+ → "foofoo"
(?:abc)

Non-capturing group

e.g. (?:foo)+ → "foofoo"
(?<name>abc)

Named capture group

e.g. (?<year>\d{4})
(?=abc)

Positive lookahead

e.g. \w+(?=\s) → "hello world"
(?!abc)

Negative lookahead

e.g. \d+(?!px) → "100em"
(?<=abc)

Positive lookbehind

e.g. (?<=\$)\d+
(?<!abc)

Negative lookbehind

e.g. (?<!\$)\d+
a|b

Alternation — a or b

e.g. cat|dog → "cat" or "dog"
Quantifiers

8 items

a*

Zero or more of a

e.g. ab* → "a", "ab", "abbb"
a+

One or more of a

e.g. ab+ → "ab", "abbb"
a?

Zero or one of a

e.g. colou?r → "color", "colour"
a{3}

Exactly 3 of a

e.g. a{3} → "aaa"
a{3,}

3 or more of a

e.g. a{3,} → "aaa", "aaaa"
a{3,6}

Between 3 and 6 of a

e.g. a{3,6} → "aaa"…"aaaaaa"
a*?

Lazy — as few as possible

e.g. <.+?> → first tag only
a+?

Lazy one or more

e.g. a+? → single "a"
Flags

6 items

g

Global — find all matches

e.g. /ab/g → all "ab"
i

Case-insensitive

e.g. /hello/i → "Hello", "HELLO"
m

Multiline — ^ and $ match line start/end

e.g. /^word/m
s

Dotall — . matches newline too

e.g. /a.b/s → "a\nb"
u

Unicode — treat pattern as Unicode

e.g. /\u{1F600}/u
y

Sticky — match at lastIndex only

e.g. /ab/y