Check a number in string using Regex?

How to check if a number is included in a string using Regex?

For examole:
A=123
B= xyz [123]

How to check that A is included in B using Regex?

@UiMe Following xaml file meets you requriement

RegexToCheckNumber.xaml (7.0 KB)

3 Likes

@indra Thanks

I am trying to check if A is included at the end of B. Can you please tell me what you’ve written for Regex “[0-9]+” means?

“[0-9]+ it will checks if number is there r not in your string

If you don’t know what that means, I strongly advice you take a quick crash course in regex, like https://regexone.com/. You’ll learn everything you need to know in just a couple of hours tops.