AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Java string replaceall12/29/2023 ![]() ![]() You can also write \d+, where \d is known as a metacharacter that matches any digit (same as ).Take note that this regex matches number with leading zeros, such as "000", "0123" and "0001", which may not be desirable. If the input is "abcxyz", it matches nothing.If the input is "abc123xyz", it matches substring "123".This regex matches any numeric substring (of digits 0 to 9) of the input.In fact, it could match zero or more substrings of the input (with global modifier). ![]()
0 Comments
Read More
Leave a Reply. |