There is a line "# 1104, # 1104, # 1108 geg787, 894654" you must have written a regular schedule that checks for the presence of such a symbol # in front of numbers. Implemented it on js, how to write the same on php

str="#1104, #1104, #1108 geg787 , 894654" re = /#(\d+)/ig found = str.match(re) 
  • one
    Likewise, only the g key is superfluous. - PinkTux
  • @PinkTux, if it’s not hard to write .... - ChromeChrome
  • /#(\d+)/i . Or do you read aloud the chapter from a tutorial about PHP and regular expressions? Sorry, this is not for me, but, for example, in Google, or here: php.su/preg_match - PinkTux
  • What exactly do you have difficulty writing this regular expression for PHP? - Roman Grinyov

0