//ads: ?> Substitute integers and dots with regex [duplicate]phpregex PHP Snippet 1:(\d.\d) PHP Snippet 2:\d+(\.\d+)?