regex - MySQL RLIKE repeating character end position -


I have done my due diligence and are still stuck. I have a situation where I need to find out where the last existing letter is in a search string, check to see what is behind that character, I think I have to use RLIKE to do this Needed, but maybe there is another way. Example table. Column content string:

  MSH | Content | More |||| PID | Accessories Morestuff | Morestuffofanotherlength || Wejustfollowedablank | Morestuff2 || ^ 1 ^ ||| .. ||||| .. | ||  

How should I count 19 pipes after the keyword PID, then see if the next letter is not (can be greater than 19 pipes, or there may be less And do not blow me out if you do not have to see the 19)

I know that I can use the LOCATE function to find my starting position, after PID, it is not sure How to pass that status into expression in the events of 19 To start counting. Beyond the initial position

Partial regexp i.e. looks like '\ (. + \) Pid [|] {19}' in pspad, I can not find it in Mysql messy So either the syntax is different or I am completely on the wrong path.

Any suggestions?


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -