Can regex be used for numbers?

To match any number from 0 to 9 we use \d in regex . It will match any single digit number from 0 to 9. \d means [0-9] or match any number from 0 to 9. Instead of writing 0123456789 the shorthand version is [0-9] where [] is used for character range.

Sizin İçin Seçtik  What is Android development explain?

Leave a Reply

Your email address will not be published. Required fields are marked *