How can I have a shortcut search for text in a note? Lets say I have a note with 3 letters (A, B, C.). I want to make a shortcut to do something if the passed note contains "B" for example. So I need to figure out how Shortcuts finds "B" in my note.

How can I accomplish this?

PS: I tried with "Match Text/Pattern" but don't know which pattern to use.

Note
(A, B, C.)
|
***Match Text
Pattern: 0-9a-zA-Z***
|
If
  (INPUT) - (Contains)
  (Value: B)
  |
  Show Result:
  This Works.
otherwise
  |
  Show Result:
  This does NOT Work.
End IF.
Still not sure I totally understood what you are looking for. So let me propose a solution below. If it doesn't work for your problem, please comment specifically on the proposed solution and explain where it doesn't meet your needs.



The shortcut



Its configuration

Make it accept text so we can pass Notes as input



Let's put it to work