How to get search partially instead of exact match?
-
The text file:
3005490
3032390
3053390
3090546
3090452
3090234
If I search for “3090”, the output would be,
3090546
3090452
3090234But I want results like,
3005490
3032390
3053390
3090546
3090452
3090234Please help me on this, thanks.
-
Find:
30\d*?90
Search mode: Regular expressionIf your goal is to have N++ highlight only those parts you have shown as bolded, in its Search results window or when you use Find Next, then sorry, you’re not going to get that.
-
@Alan-Kilborn Thanks for the help. It helped to find all the lines with ‘3090’.
But is there any way to find only the lines that start with ‘30’ and end with ‘90’?
(i.e) it should not return result like,
3009056 -
@LogeshNguhan said in How to get search partially instead of exact match?:
is there any way to find only the lines that start with ‘30’ and end with ‘90’?
Yes, there is. Did you have a look at the references I supplied to you in my previous post?
-
-
If your goal is to have N++ highlight only those parts you have shown as bolded…
This could be achieved by using a suitable regex with a logical or directive and Mark All.
-
@Neil-Schipper said in How to get search partially instead of exact match?:
This could be achieved by using a suitable regex with a logical or directive and Mark All.
I meant when using the simple regex I supplied.