Get value after some specific character in C#

Get value after some specific character in C#

So I want to extract the&nbsp;<code>value</code>&nbsp;from a&nbsp;<code>string</code>&nbsp;the&nbsp;<code>value</code>&nbsp;will place at the right after my specific character in this case my specific character is&nbsp;<code>-</code>&nbsp;and will place at the right.

So I want to extract the value from a string the value will place at the right after my specific character in this case my specific character is - and will place at the right.

The string will look like this:

TEST-QWE-1
TEST/QWE-22
[email protected]
TEST-QWE-ASD-4

And from that string I want to extract

1
22
3
4

How I do that in C#? Thanks in advance

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

C/C++ vs. Rust: A developer’s perspective

In this post, you'll see the difference between Rust and C/C++ in a developer’s perspective

Variable Introduction in C#[Bangla]

LIKE | COMMENT | SHARE | SUBSCRIBE A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in C# has a speci...