pattern match processing of multiple .frm files

前端 未结 1 573
名媛妹妹
名媛妹妹 2021-01-29 12:20

I have multiple VB6 .frm files. See example below. I want to strip away the functions and subs from the code and leave only the form design.

What I need t

1条回答
  •  时光说笑
    2021-01-29 12:45

    You just need 2 rules:

    1) If line starts with 'Attribute' then don't delete. 2) If line starts with 'Attribute' set a flag to start deleting all subsequent lines.

    Rule #1 will prevent you from deleting subsequent Attribute lines, and there should be nothing you want to keep after the first Attribute you encounter unless it's an Attribute.

    0 讨论(0)
提交回复
热议问题