Jul-24-2022, 04:41 AM
Hello,
I have an regex issues as I am seeking to find only the numbers that are attached to words:
For example:
1the
5one
5529care
30over
The following regex
A sample text for reference:
25 - not this number
the cow just over the moon and the sun is in 1the sky
26 - not this number
5one day is soon and soon is near take 5529care, 30over and out
I have an regex issues as I am seeking to find only the numbers that are attached to words:
For example:
1the
5one
5529care
30over
The following regex
\d+([A-Za-z])finds the number to include the first letter of the word. What modifications do I need so that it will find only the numbers attached to the words. Thanks
A sample text for reference:
25 - not this number
the cow just over the moon and the sun is in 1the sky
26 - not this number
5one day is soon and soon is near take 5529care, 30over and out