Considering the following code:
TFrmLeistung = class(TFrmStandard)
PanelBottom: TsuiImagePanel;
lbDatum: TLabel;
lbLeistungTyp: TLabel;
**TVirtualKosten = record
KostenLeistung,BetragEH,Pauschal: Currency;
ProzentES: Integer;
end;**
FMengeAutoSet: Boolean;
FMengeAutoSetVal: Integer;
FLstTxtPopupFunctions: TJX2LstTxtPopupFunctions;
FAfterShowCalled: Boolean;
FBAKuerzel : TJX2BAKuerzel;
FPseudoLst : TJX2Leistung
end;
is it possible to select the entire code without the code block between double asterisks with regex?
Basically I am trying to extract the class declration without including the record type.
Also it is possible the multi aquirence of such code and I want to escape all of them in the final results.
/^end;\n\n/m
, because it's surely the onlyend;
having an empty line afterwards, in contrast to your record ends, which always have a non-empty line afterwards. Also note it's called PCRE.