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" - oldshell
ARGS=-ecfg.newshell=false
BROKEN=1
FILE=malloc://1024
CMDS=<<EOF
w "test123 ab"
w "Test123 ab" @444
?e
e search.in=block
b 777
"/e /t\wst\d\d\d\s\w\w/i"
EOF
EXPECT=<<EOF

0x00000001 hit0_0 ""test123 ab""
0x000001bd hit0_1 ""Test123 ab""
EOF
RUN

NAME="/e /t\wst\d\d\d\s\w\w/i" - newshell
ARGS=-ecfg.newshell=true
FILE=malloc://1024
CMDS=<<EOF
w '"test123 ab"'
w '"Test123 ab"' @444
?e
e search.in=block
b 777
"/e /t\wst\d\d\d\s\w\w/i"
EOF
EXPECT=<<EOF

0x00000001 hit0_0 ""test123 ab""
0x000001bd hit0_1 ""Test123 ab""
EOF
RUN

NAME=regextest
FILE=--
CMDS=<<EOF
?e hello world
EOF
REGEXP_OUT=wor
RUN
