Some are you maybe looking for something like:
rule main
# We're looking for a start mark, that may be proceeded
# by any amount of goop we don't care about.
goop* start_mark good_stuff
end
rule start_mark
"static" " "+ "struct"
end
rule goop
# Match any character that isn't the start of the start_mark
!start_mark .
end
rule good_stuff
# Real work lives here
end
-- Markus