regex - Remove everything before and after variable=int -
i'm terrible @ regex , need remove large portion of text except variable declaration occurs numerous times, id remove except instances of mc_gross=anyint.
find what: [\s\s]*?(mc_gross=\d+|\z)
replace with: \1
position cursor @ start of text replace all.
add word boundaries \b
around mc_gross=\d+
if think it's necessary.
Comments
Post a Comment