GREP Exclude characters
Hello!
In my text the letter g means glossary.
And I need DELETE all paragraph contains only numbers. I mean, I need keep the paragraph if contain the cross references like the letter g and (See...)
Here you can see in color PINK the paragraph I need delete.

here is my code, but I don't know how can I EXCLUDE the other paragraph.
replaceTextUsingGREP ("+(\\d[–\\d, -]*\\d?) *","\r");
function replaceTextUsingGREP (input, output) {
app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
app.findGrepPreferences.findWhat = input;
app.changeGrepPreferences.changeTo = output;
var changedResults = app.activeDocument.changeGrep();
app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
}
Thanks so much!

