Check a number in string using Regex?

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

For examole:
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)


@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 You’ll learn everything you need to know in just a couple of hours tops.