Problems with "content:" and digits.

Discussion related to "Everything" 1.5 Alpha.
Post Reply
fmotion1
Posts: 1
Joined: Mon May 22, 2023 2:18 am

Problems with "content:" and digits.

Post by fmotion1 »

I have a bunch of SVG files in a directory.

This expression works:

Code: Select all

"C:\Users\[username]\Desktop\Icons\SF Symbols\" each-line:startwith:content:"<svg width="
This expression fails:

Code: Select all

"C:\Users\[username]\Desktop\Icons\SF Symbols\" each-line:startwith:content:"<svg width="28""
To confirm, the SVGs do start with

Code: Select all

<svg width="28" 
Why does the addition of digits into my expression cause failure?
void
Developer
Posts: 16774
Joined: Fri Oct 16, 2009 11:31 pm

Re: Problems with "content:" and digits.

Post by void »

Use &quot: to escape quotes.

For example:
"C:\Users\[username]\Desktop\Icons\SF Symbols\" each-line:startwith:content:"<svg width=&quot:28&quot:"



-or-


Use content*: to treat the rest of your search as literal:
"C:\Users\[username]\Desktop\Icons\SF Symbols\" each-line:startwith:content*:<svg width="28"
Post Reply