• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Substitute integers and dots with regex [duplicate]

phpregex


PHP Snippet 1:

(\d.\d)

PHP Snippet 2:

\d+(\.\d+)?

Related Snippets

How to reset Laravel AuthManager/guards in between API calls in tests?

Converting alphabet letter to alphabet position in PHP [duplicate]

php curl requesting twice

WordPress - Dynamically add user ID to the end of a URL

how to identify the web server name of remote host

Add rows to Single product Additional information table in WooCommerce 3.6

SMTP ERROR: MAIL FROM command failed: 530 5.7.0 Must issue a STARTTLS command first when using PHPMailer

WordPress + Nginx on non-standard port behind AWS ELB results in broken links

Detect emoticons in string

array_key_exists(): The first argument should be either a string or an integer

woocommerce_wp_select options array from product attribute terms

Match single unknown parameter php (Morse-code Regex)

How to convert time from one timezone to another in PHP

How do I loop through an MS SQL database with VB.NET?

How to make dot match newline characters using regular expressions

About Contact Privacy policy Terms and conditions