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) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -