Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(struct\s*\w+.*?(?=fn))(fn.*?(?=\),)\)).*?(?=fn)(fn.*?\))(?=\R\))
/
gs
Input 1
1
New
struct mbuh ( lineshg = 0, tres = "text", fn track all:#() = ( local c -- clone local lpoint = [0,0,0] -- previous point created local ccoll = #() -- array for created objects local prev = [0,0] -- var for alt distance changing ), fn listzfun trs:123 x:#() = ( obj = snapshotasmesh a min_vz = max_vz = in coordsys world (getvert obj 1).z min_vx = max_vx = in coordsys world (getvert obj 1).x min_vy = max_vy = in coordsys world (getvert obj 1).y ) ) struct mbuh ( lineshg = 0, tres = "text", fn track all:#() = ( local c -- clone local lpoint = [0,0,0] -- previous point created local ccoll = #() -- array for created objects local prev = [0,0] -- var for alt distance changing ), fn listzfun trs:123 x:#() = ( obj = snapshotasmesh a min_vz = max_vz = in coordsys world (getvert obj 1).z min_vx = max_vx = in coordsys world (getvert obj 1).x min_vy = max_vy = in coordsys world (getvert obj 1).y ) ) fn brung man: = ( )