Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7604831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:00:40+00:00 2026-05-31T00:00:40+00:00

I want a functionality ,where user can enter some text in a textbox,and based

  • 0

I want a functionality ,where user can enter some text in a textbox,and based on some predefined characters ,i have to identify different attributes user can be linked to.
For example : In the textbox user enters as:
“Hello @Sunil you are going to work on #Desktop which has a priority of !1”

Now from this data,i want to extract the name of the developer,i.e based on @..which is sunil.
name of the team based on # char,which is desktop..and priority of task,based on !char which is 1.

This data will be entered on a website,used for task management and admins will enter this…
So that then it becomes fast entry of tasks…for admins.

I can split the data and process it…but then there are too many permutations and combinations in which order chars(#,@,!) may be entered.

I tried something like this,but it didnt helped:

if (TitleText.Contains("#") && TitleText.Contains("@") && TitleText.Contains("!"))
{

        string[] arr = TitleText.Split('#', '@', '!');
        title = arr[0];
        devName = arr[1].Trim().ToLower();
        devTeam = arr[2].Trim().ToLower();
        prio = Convert.ToInt32(arr[3]);
    } else if (TitleText.Contains("#") && TitleText.Contains("@")) {
        string[] arr = TitleText.Split('#', '@');
        title = arr[0];
        devName = arr[1].Trim().ToLower();
        devTeam = arr[2].Trim().ToLower();
        // prio = Convert.ToInt32(arr[3]);
    } else if (TitleText.Contains("#") && TitleText.Contains("!")) {
        string[] arr = TitleText.Split('#', '!');
        title = arr[0];
        devName = arr[1].Trim().ToLower();
        //devTeam = arr[2];
        prio = Convert.ToInt32(arr[2]);
    } else if (TitleText.Contains("@") && TitleText.Contains("!")) {
        string[] arr = TitleText.Split('@', '!');
        title = arr[0];
        // devName = arr[1];
        devTeam = arr[1].Trim().ToLower();
        prio = Convert.ToInt32(arr[2]);
    } else if (TitleText.Contains("#")) {
        string[] arr = TitleText.Split('#');
        title = arr[0];
        devName = arr[1].Trim().ToLower();
        //devTeam = arr[1];
        //prio = Convert.ToInt32(arr[2]);
    } else if (TitleText.Contains("@")) {
        string[] arr = TitleText.Split('@');
        title = arr[0];
        // devName = arr[1];
        devTeam = arr[1].Trim().ToLower();
        //prio = Convert.ToInt32(arr[2]);
    } else if (TitleText.Contains("!")) {
        string[] arr = TitleText.Split('!');
        title = arr[0];
        // devName = arr[1];
        //devTeam = arr[1];
        prio = Convert.ToInt32(arr[1]);
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T00:00:42+00:00Added an answer on May 31, 2026 at 12:00 am

    Try with regex

    string Name=Regex.Match(SubjectString, "@(.*?) ").Groups[1].Value;
    string Comp=Regex.Match(SubjectString, "#(.*?) ").Groups[1].Value;
    string Priort=Regex.Match(SubjectString, "!(.*?) ").Groups[1].Value;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a pagination functionality, where the user can either enter page number OR
I want to have functionality on my application that lets a user check off
I have extended a MaskedTextBox component to add some functionality. The text property of
I have a UIWebView i want to introduce functionality of content(may be text or
A user can have many addresses, but I want to retrieve the latest entry
I have some common javascript functionality that I want to share across several views/pages.
By default the search functionality is implemented this way. User enters some text in
I'm having a form in a .erb file, where the user can enter some
I want to include a batch file rename functionality in my application. A user
I am developing a library. I want some functionality to be additionally available in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.