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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -