Test is successful but Search doesn't find anything #462
-
This is my first time using Rummage. In Sublime Text my Find in Files regex searches 77 files and finds 261 matches across 5 files. In Rummage it searches the same 77 files, skips 0, but doesn't find any matches. If I use the Regex Tester and copy the contents of one of my files into it, the tester finds the same matches that Sublime Text does. I have three things checked in Text search options: Search with regex, Create backups, Force ASCII This is my regex: I'm trying to clean up, and fix, SQL text strings in a project to all have the same format and I intend to do this in all branches of my code repository to reduce the chance future merges will break things. The above regex is step 1 of 50+ steps, so I'm really hoping I can get Rummage Search Chains to work. Anyone have any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
Please provide a minimal file that we can test. I need a concrete, reproducible example or I cannot begin to guess what you are doing wrong. It is possible that you have your glob pattern configured wrong or any number of issues, but without a reproducible example, I cannot help. |
Beta Was this translation helpful? Give feedback.
-
Now that I mention glob patterns, please take a screenshot showing your file pattern settings, etc. as well. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Just to be clear, the directory you are showing me in Windows file explorer does not match the path in rummage, you noticed this right? |
Beta Was this translation helpful? Give feedback.
-
Thanks for figuring it out! |
Beta Was this translation helpful? Give feedback.
@mb96851 Yeah, the file you gave me had Windows new lines. Since you have
backrefs
enabled, just use\R
which will file line endings of\n
,\r
, or\r\n
. Either that or use explicit\r\n
. Once I updated the pattern to use\R
instead or\n
, it all worked fine.