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 7930665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:29:51+00:00 2026-06-03T20:29:51+00:00

I have different option how my GUIDS could be stored as a string line.

  • 0

I have different option how my GUIDS could be stored as a string line.

1. Accessibility|5102d73a-1b0b-4461-93cd-0c024738c19e
2. 5102d73a-1b0b-4461-93cd-0c024738c19e;#5102d73a-1b0b-4461-93cd-0c024733d52d
3. |;#5102d73a-1b0b-4461-93cd-0c024738c19e;#SharePointTag|5102d73a-1b0b-4461-93cd-0c024733d52d
3. Business pages|;#5102d73a-1b0b-4461-93cd-0c024738cz13;#SharePointTag|5102d73a-1b0b-4461-93cd-0c024733d52d

Could you guys help me to with ideas how could I parse this tags and get List of Guids type in the end? Maybe regular expression could help in such situation?

  • 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-06-03T20:29:53+00:00Added an answer on June 3, 2026 at 8:29 pm

    Looks like you’re playing with Managed metadata, term store ID and term set ID 🙂

    Just use a regular regexp (the “p” variable below):

    string c1 = "Accessibility|5102d73a-1b0b-4461-93cd-0c024738c19e";
    string c2 = "5102d73a-1b0b-4461-93cd-0c024738c19e;#5102d73a-1b0b-4461-93cd-0c024733d52d";
    string c3 = "|;#5102d73a-1b0b-4461-93cd-0c024738c19e;#SharePointTag|5102d73a-1b0b-4461-93cd-0c024733d52d";
    string c4 = "Business pages|;#5102d73a-1b0b-4461-93cd-0c024738cz13;#SharePointTag|5102d73a-1b0b-4461-93cd-0c024733d52d";
    string p = @"([a-zA-Z0-9]{8}[-][a-zA-Z0-9]{4}[-][a-zA-Z0-9]{4}[-][a-zA-Z0-9]{4}[-][a-zA-Z0-9]{12})";
    
    MatchCollection mc;
    
    Console.WriteLine("#1");
    mc = Regex.Matches(c1, p);
    foreach (var id in mc)
        Console.WriteLine(id);
    
    Console.WriteLine("#2");
    mc = Regex.Matches(c2, p);
    foreach (var id in mc)
        Console.WriteLine(id);
    
    Console.WriteLine("#3");
    mc = Regex.Matches(c3, p);
    foreach (var id in mc)
        Console.WriteLine(id);
    
    Console.WriteLine("#4");
    mc = Regex.Matches(c4, p);
    foreach (var id in mc)
        Console.WriteLine(id);
    

    Wich output:

    #1
    5102d73a-1b0b-4461-93cd-0c024738c19e
    #2
    5102d73a-1b0b-4461-93cd-0c024738c19e
    5102d73a-1b0b-4461-93cd-0c024733d52d
    #3
    5102d73a-1b0b-4461-93cd-0c024738c19e
    5102d73a-1b0b-4461-93cd-0c024733d52d
    #4
    5102d73a-1b0b-4461-93cd-0c024738cz13
    5102d73a-1b0b-4461-93cd-0c024733d52d
    Press any key to continue...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a select element containing different titles; as an example: <select name=titles> <option
I have working code of js, it shows different div for selected option. <html>
I have different php output in jQuery-based tabs. This output is formed from database
I have different urls that points to the same code www.url1.com www.url2.com I need
I have different projects written in .NET 3.5 and some unit test projects to
I have different select boxes. I want to select second one with related id.
I have two functions that have different enough logic but pretty much the same
On a page I have different element which I bound yo different Ajax calls.
I have a treeview (winforms) which have different item types on it. I have
Various online services have different values for maximum year of expiry, when it comes

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.