Find and replace with regex in notepad++ -


i'm trying remove lines indicate page numbers document.

rather go through , manually remove each line, wanted find/replace regex.

an example of offending line is

page 62

i'm not having luck regex.

my regex follows

^page [0-100]$ 

scrolling bottom of page, can see these lines end @ page 62 per above, regex isn't finding results.

can tell me did wrong?

edit

i've tried matching ^page \d$ no results...

[0-100] 0-1, 0, , 0, not 0-100. therefore match 0 or 1.

try regex:

^page ([0-9][0-9])|(100)$ 

it match page, 2 digits or 100.

if don't care how big page numbers can be, use "digit" escape sequence:

^page \d+$ 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -