Regex to find an integer within a string

后端 未结 6 1349
眼角桃花
眼角桃花 2020-12-31 01:10

I\'d like to use regex with Java.

What I want to do is find the first integer in a string.

Example:

String = \"the 14 dogs ate 12 bones\"
         


        
6条回答
提交回复
热议问题