How do I write a regular expression in where clause to match the following patterns
Pattern 1
~
~ ~
~ ~ ~
Pattern 2
~ ~ |A~b
~ ~ ~|A~b~c
~ ~ ~|this can be anything
~ ~ ~ ~ ~ ~|this can be anything
For pattern 2 just need to match the part before |.
REGEXP '^[~ ]{2,6}|.*';?