# Jianlai regex source: escape a literal dot and check two ASCII digits with full matching

Language: en
Canonical: [Jianlai regex source: escape a literal dot and check two ASCII digits with full matching](<https://allluckly.cn/en/guides/jianlai-regex-literal-dot-ascii-two-digits-fullmatch/>)
中文：[中文 HTML](<https://allluckly.cn/guides/jianlai-regex-literal-dot-ascii-two-digits-fullmatch/>)
English: [English HTML](<https://allluckly.cn/en/guides/jianlai-regex-literal-dot-ascii-two-digits-fullmatch/>)
Published: 2026-11-19T00:00:00+08:00
Modified: 2026-11-19T10:24:33+08:00
Author: Bison

Type a pattern explicitly intended for Python re and four test strings, then check complete-string matching externally. Backslash, dot and braces have separate roles. Jianlai is not a code runner, and other regex engines do not automatically inherit these results.

English translation of the [Chinese original](<https://allluckly.cn/guides/jianlai-regex-literal-dot-ascii-two-digits-fullmatch/>), translated on 2026-11-19. Original publication dates, attribution, code and version notes are retained.

Type a pattern explicitly intended for Python re and four test strings, then check complete-string matching externally. Backslash, dot and braces have separate roles. Jianlai is not a code runner, and other regex engines do not automatically inherit these results.

## Declare the engine, target format and ordinary draft

Create an ordinary English/symbol draft, identify Jianlai and the host and keep appearance fixed. The target format is lowercase clip, one literal ASCII dot and exactly two ASCII digits, such as clip.07. No files are accessed or renamed. Specify Python standard-library re.fullmatch, not a search box finding a substring. Preserve the text contract, pattern and test list separately without changing production files/code. Without an external tool, deliver entry and manual reasoning and mark execution unperformed. Invent no regex-check or execution menu in Jianlai.

## Enter the pattern itself before a program string literal

The first block is pattern text alone: clip, one backslash, one dot, then ASCII brackets/braces. Enter portions through actual symbol controls and inspect committed text. A backslash is not a forward slash, and the range uses an ASCII hyphen. This pattern field contains no spaces, surrounding quotes or r prefix; those belong to a later program-string representation. Preserve smart-punctuation substitutions before revising one point. Pasting a reference can reproduce characters but does not establish manual entry of each symbol; record route and final equality separately.

```
clip\.[0-9]{2}
```

## Explain the dot, range and exact repetition

In Python re a bare dot normally matches any character except a newline; escaping it makes our dot literal. \[0-9\] selects ASCII digits and {2} repeats that preceding item exactly twice, not at least twice or numeric value two. The four lowercase clip letters also participate, with no case-insensitive flag here. Chinese braces or prose saying zero through nine are not replacements. Recheck actual characters after interpreting each part. Knowing the terminology does not prove the draft, and pattern text and test values are not interchangeable.

## Check four literal values with full matching

List clip.07, clipX07, clip.7 and clip.007 separately without explanatory outer spaces. Under fullmatch only the first passes: X replaces the dot in the second, and the others have one or three digits. Failure is relative to this contract, not a claim that these can never be filenames. A default search may find a substring in longer text; establish whole matching before comparison. Without execution, keep the prediction table and mark it unperformed rather than claim app-generated red errors. A separate value clip.07 followed by a trailing newline also fails this fullmatch rule, unlike some search-plus-end-anchor conventions. Identify that real character rather than infer equality from an invisible line ending. This extra control adds no claimed execution to the original four-row record.

```
clip.07
clipX07
clip.7
clip.007
```

## Remove only the escape for a controlled comparison

Save an external control deleting only the backslash before the dot, producing clip.\[0-9\]{2}. Under the same fullmatch operation, clipX07 now passes, exposing the bare dot’s broader role. Do not also change case or quantifiers. Keep manual reasoning separate from actual tool results, and verify that no letter or bracket was deleted instead. The original pattern rejects full-width digits in clip.０７ because its range is ASCII. Resemblance is not identity, and this does not define every digit class’s Unicode behavior.

## Represent the pattern in an external Python raw string

With an existing Python environment, use the example in a separate practice file and record version/output. The r prefix and quotes are Python source syntax, not part of the pattern passed to re. A raw string retains the single backslash and avoids another escaping layer. Ordinary strings have their own rules; do not add layers and count visible slashes without specifying representation. The program only prints four Boolean results, without files, networking or transmission. Mark execution unavailable when necessary. Keyboard entry and external execution remain separate.

```
import re
pattern = r"clip\.[0-9]{2}"
for value in ("clip.07", "clipX07", "clip.7", "clip.007"):
    print(value, re.fullmatch(pattern, value) is not None)
```

## Troubleshoot characters, engine and matching method

An unexpected clipX07 pass suggests a lost backslash. A clip.007 pass calls for checking substring search or repetition changes. Universal failure may mean r and quotes were passed as pattern characters. Inspect full-width dots/digits and smart quotes as characters rather than disguise them with fonts. Change one variable and retain failing pattern, value and method. For a tool lacking fullmatch, consult its own documentation for whole-string semantics instead of adding arbitrary anchors and promising equivalence across engines.

## Reopen and deliver entry, interpretation and execution

Reopen the ordinary draft and inspect its one backslash, bracket/brace pairs and repetition digit, retaining literal test values. Deliver actual entry, four predictions, the unescaped control and external results with unfinished stages marked. Restore normal input and keep practice out of real bulk-replacement rules. Check exact pattern, interpretation and execution separately. Paths, case flags and Unicode rules require new contracts; this example is no universal filename validator, program-security review or all-host compatibility proof.

## Related guides and sources

[ASCII punctuation contracts](<https://allluckly.cn/en/guides/jianlai-chinese-ascii-punctuation-two-contracts/>); [Source strings and types](<https://allluckly.cn/en/guides/jianlai-json-object-string-number-source-contract/>).

Checked on 19 November 2026: [Apple’s Finland lookup](<https://itunes.apple.com/lookup?id=6754281557&country=fi&entity=software&timestamp=20261119>) and [China lookup](<https://itunes.apple.com/lookup?id=6754281557&country=cn&entity=software&timestamp=20261119>) both list Jianlai 1.0.5, requiring iOS / iPadOS 16.0 or later. The [official store](<https://apps.apple.com/fi/app/id6754281557>) describes themes, backgrounds, fonts and multilingual input. Use controls actually present in the installed version; system editing and host processing are distinguished separately. These are repeatable instructions and paper expectations, not claims of completed device input, host compatibility or format-parser tests.

Method references: [Python re and fullmatch documentation](<https://docs.python.org/3/library/re.html>).

