Sublime Forum

Regex issue in Find in File (Ctrl+Shift+F)

#1

Hi,

When I do regex on a one file with the pattern (below) using Ctrl+F the search is succeed!!
But when I do the search with the same pattern using Find in File (Ctrl+Shift+F) while the same file(From the previous search) is open it is not working!!!
*Pattern: ** ^Session\s+\d+,\d+]\s+,\s+Logon Time\s+\s-1000]
File content that I’m searching for: Session [54,181531094121332] , Logon Time -1000]
I have 9 files are opened and each file size is about ~100MB.

Help is really appreciated.

Thanks a lot,
WissaM

0 Likes

#2

This means what exactly?

0 Likes

#3

Hi,

When I search the pattern on file using Ctrl+F I find a match, but when I do the same pattern search with Ctrl+Shift+F on the same file with other files I got ZERO matches. (There is not match).
I hope that this is clear enough.

Thanks,
WissaM

0 Likes

#4

So it shows that it found 0 matches in the buffer?

I have three theories for this.

  1. You have regex search disabled in the find in files panel, but from my tests the settings seems to be shared.

  2. Sublime Text ignores files this big. I think I read something about this a while ago but I can’t remember exactly.

  3. The search is still ongoing, but considering it probably showed “0 matches” this is unlikely.

  4. seems like the problem most likely.

0 Likes

#5

Hi,

Yes you are right 2 seems to be the most likely reason.
Is there any configuration parameter that can change this behaviour?

Thanks,
WissaM

0 Likes

#6

Hi Again,

In the 2nd thought no it could not be the issue because I succeed to find part of the regex pattern(the part in Red) : ^Session\s+\d+,\d+]\s+,\s+Logon Time\s+\s*-1000]

Thanks,
WissaM

0 Likes