RegExp to find path not working (any more)?
-
A text file contains lots of file names with leading pathes e.g.
D:\aaa\bbb\ccc\myfile.doc
I want to search now the next path (except filename) starting at the left in column 1.
In the past I used therefore a regexp(?-s)^,+\
This should find D:\aaa\bbb\ccc\ from sample above
But when I enter this RegExp in NP++ Find dialog it does not find any of the hundreds path+filenames.
Why not?
Yes, I enabled Regular Expression Search mode at the bottom
-
@Claudia-Svenson said in RegExp to find path not working (any more)?:
(?-s)^,+\
I assume it should be
(?-s)^.+\(note the dot instead of the comma.) -
Hello, @claudia-svenson, @ekopalypse and All,
Eko, just a typo; the correct regex is :
SEARCH / MARK
(?-s)^.+\\BR
guy038
-
@guy038 said in RegExp to find path not working (any more)?:
Hello, @claudia-svenson, @ekopalypse and All,
SEARCH / MARK(?-s)^.+\\It works.
Thank you
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login