mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 21:29:49 +00:00
63 lines
723 B
Plaintext
63 lines
723 B
Plaintext
NAME=/e /test/i
|
|
FILE=malloc://1024
|
|
CMDS=<<EOF
|
|
w test
|
|
w Test@444
|
|
?e
|
|
e search.in=block
|
|
b 777
|
|
/e /test/i
|
|
EOF
|
|
EXPECT=<<EOF
|
|
|
|
0x00000000 hit0_0 "test"
|
|
0x000001bc hit0_1 "Test"
|
|
EOF
|
|
RUN
|
|
|
|
NAME=/e m (invalid) #742
|
|
FILE=malloc://1024
|
|
CMDS=<<EOF
|
|
w test
|
|
w Test@444
|
|
/e m
|
|
/e m
|
|
/e m
|
|
/e m
|
|
EOF
|
|
EXPECT=<<EOF
|
|
EOF
|
|
RUN
|
|
|
|
NAME=/e /t\wst\d\d\d\s\w\w/i
|
|
CMDS=<<EOF
|
|
w test123 ab
|
|
w Test123 ab @444
|
|
e search.in=block
|
|
b 777
|
|
/e /t\wst\d\d\d\s\w\w/i
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0x00000000 hit0_0 "test123 ab"
|
|
0x000001bc hit0_1 "Test123 ab"
|
|
EOF
|
|
RUN
|
|
|
|
NAME=regextest
|
|
FILE=--
|
|
CMDS=<<EOF
|
|
?e hello world
|
|
EOF
|
|
REGEXP_OUT=wor
|
|
RUN
|
|
|
|
NAME=/ej json
|
|
FILE=malloc://1024
|
|
CMDS=<<EOF
|
|
w HELLO WORLD
|
|
/ej /[A-Z]*/
|
|
EOF
|
|
EXPECT=<<EOF
|
|
{"offset":0,"type":"string","data":"HELLO WORLD"}
|
|
EOF
|
|
RUN |