regex - MySQL - REGEXP for matching a number preceded by '#' and NOT followed by another number -


I think I have already explained in the title, I want to select all rows in the table of a REGEXP pattern A typical column is needed This pattern is complete:

Characters '#' after the given number, e.g. For example, the given number '5':

  (# 12 + # 55-), '5' must be present at least once, and not from any other number.  # 8) / # 2 - & gt; Pattern should not match (# 12 + # 5- # 8) / # 2 - & gt; Pattern must match (# 12 + # 55- # 5) / # 2 - & gt; Pattern should match   

Unfortunately I'm not a regex expert and I have already wasted a few hours without much success. Any help is very welcome.

In that case, the following will work:

^. *? (# 5) ([^ 5] | $). *? $



Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -