예제
Normalize repeated spaces in a copied HTTP request
입력
GET /health HTTP/1.1
Host: example.orgExpected answer
GET /health HTTP/1.1
Host: example.org- 찾기
{"option":"Regex","string":"[ \\t]+"}- 교체
- 전체 일치
On- 대소문자 구분 안함
Off- 다중 행 매칭
On- 모든 문자에 점 일치
Off
Redact a demo bearer token while retaining the header name
입력
Authorization: Bearer DEMO_TOKEN_NOT_VALID
Accept: application/jsonExpected answer
Authorization: Bearer [REDACTED]
Accept: application/json- 찾기
{"option":"Regex","string":"(Authorization: Bearer )\\S+"}- 교체
$1[REDACTED]- 전체 일치
On- 대소문자 구분 안함
Off- 다중 행 매칭
On- 모든 문자에 점 일치
Off
Move endpoint URLs to a new hostname literally
Simple string treats the dots as dots, rather than regular-expression wildcards.
입력
https://old.example.org/v1/status
https://old.example.org/v1/jobsExpected answer
https://api.example.org/v1/status
https://api.example.org/v1/jobs- 찾기
{"option":"Simple string","string":"old.example.org"}- 교체
api.example.org- 전체 일치
On- 대소문자 구분 안함
Off- 다중 행 매칭
On- 모든 문자에 점 일치
Off
Complete only the first item in a task list
입력
TODO: write test
TODO: deployExpected answer
DONE: write test
TODO: deploy- 찾기
{"option":"Simple string","string":"TODO"}- 교체
DONE- 전체 일치
Off- 대소문자 구분 안함
Off- 다중 행 매칭
On- 모든 문자에 점 일치
Off
Disable debug flags with case-insensitive line matching
입력
DEBUG=true
port=8080
debug=trueExpected answer
debug=false
port=8080
debug=false- 찾기
{"option":"Regex","string":"^debug=(?:true|false)$"}- 교체
debug=false- 전체 일치
On- 대소문자 구분 안함
On- 다중 행 매칭
On- 모든 문자에 점 일치
Off
매개변수
| 매개변수 | 기본값 | 입력 및 선택 항목 |
|---|---|---|
| 찾기 | {"option":"Regex","string":""} | 키 또는 텍스트 인코딩: 정규식, Extended (\n, \t, \x...), Simple string |
| 교체 | "" | \n, \r, \t 등의 이스케이프 시퀀스 지원 |
| 전체 일치 | true | 켜짐 또는 꺼짐 |
| 대소문자 구분 안함 | false | 켜짐 또는 꺼짐 |
| 다중 행 매칭 | true | 켜짐 또는 꺼짐 |
| 모든 문자에 점 일치 | false | 켜짐 또는 꺼짐 |