<div dir='rtl'><div dir="ltr">Position function allows only string as pattern parameter:</div>
<div dir="ltr"> </div>
<div dir="ltr">select position(sub-string in string)</div>
<div dir="ltr"> </div>
<div dir="ltr">If you are looking for more than one sub-string you can't do it with a single call to position.</div>
<div dir="ltr">More info: </div>
<div dir="ltr"><a href="https://stackoverflow.com/questions/51925037/how-to-find-position-of-multiple-sub-string-in-postgresql">https://stackoverflow.com/questions/51925037/how-to-find-position-of-multiple-sub-string-in-postgresql</a></div>
<div dir="ltr"> </div>
<div dir="ltr"> </div>
<div dir="ltr">Required solution: make sub-string accept regular expression just like the LIKE operator.</div></div>