How to include leading/trailing space in search string? i.e. Find ' RFO ' not 'performance'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2024 07:49 PM - edited 07-22-2024 04:18 PM
Team,
What magic will allow me to add either leading or trailing spaces to my report filter?
For example, I want to find the string 'rfo' in a field, but not pick up 'peRFOrmance'.
the string could either be '+rfo' or 'rfo+', but unlikely to have both a leading and trailing character.
I did try using the escape character for space, but that did not work, i.e.
rfo\u0020
\u0020rfo
regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 02:04 PM
Try
description CONTAINS javascript:' rfo';
or
descriptionCONTAINS javascript:'rfo ';
Here is an example with the normal contains. This picks up "issue" in addition to "is"
And then with the javascript which lets me have leading and/or trailing spaces. This is "is" only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 09:18 PM
Could you please try with the filter conditions as shown below:
short_descriptionLIKEjavascript:'rfo ';^ORshort_descriptionLIKEjavascript:' rfo';
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2025 08:28 PM
I hope my solution was able to assist you. Could you please mark my answer as correct for others to follow.
Please mark this response as correct and helpful if it assisted you with your question.