Relevance for text file contains line

Hello All,

I’m looking for relevance check in a text file and fixlet should become applicable when below line is available. please note, double cot is already avaliable in that text file itself and format is same.
“enableoffice”: “true”

Exists lines containing "%22enableoffice%22: %22true%22" of files "c:\temp\test.txt"
2 Likes

Hi Jason,
Thanks for the quick help.
What does this %22 will do.?
I would like to learn these kind of tweaks, please advise me from where I can learn these.

Sure!
Inside a Relevance String literal, the percent sign indicates a percent-encoded ASCII value (in hexadecimal). 22 is the hexadecimal value for the doublequotes symbol, so %22 is a replacement for doublequotes (you can’t use a literal doublequotes inside the string, as that would terminate the string).

Similarly if you need a literal percent symbol, you’d replace that with %25 (the ASCII code for ‘%’).

You can perform percent-encoding on any string, like in a URL-encoding, where for example %20 is the symbol for a whitespace.

2 Likes