How to add Regex to a TextBox Variable and use it inside a Query to visualize data from Elasticsearch

Continuing this thread. So @roleyroley did you try the above approach and did it not work for you? if you do not want to use the above recommendation or it did not work for you, from your Serial Number what part of it do you want to extract and concatenate