how to remove duplicate list of guid in c# - list

how to remove duplicate list of guid in c#
remove duplicate list of guid in c#
In my opinon convert list of guid to list of string

Related

Google Sheets Using RegEX To Reformat & Concatenate

Link To Spreadsheet
Sheet!1Name - Names are in Single Column
Sheet!2Names - Names are in First Name, Last Name columns.
What I'm trying to do is basically remove any suffixes, special characters, and spaces, capitalize that information, and combine it with information from another field.
I was able to figure out how to piece together some regex that seems to effectively get rid of suffixes and removes special characters. It's below. That's where my skill set stops.
={"PlayerKey";ARRAYFORMULA(UPPER(IF(ISBLANK(C2:C8),,PROPER(TRIM(REGEXREPLACE(C2:C8," Jr\.$| J$| Sr\.$| S$|IV$|III$|II$|\.|-|'",""))))))}
I'm having trouble nesting formulas - i believe what i need to do is nest both concat and substitute but not sure if that's the method to get the "Desired Output example" that is in the sheet. I'm also having trouble understanding what order to do things, which is why i'm having trouble with 2Name i think.
How's this in A1 of the new tab called MK.Help?
=ARRAYFORMULA({"Player Key";UPPER(TRIM(REGEXREPLACE(IF(MID(C2:C8,2,1)=".",INDEX(SPLIT(C2:C8," "),,1),LEFT(C2:C8))&D2:D8," Jr\.$| J$| Sr\.$| S$|IV$|III$|II$|\.|-|'",""))&E2:E8)})

Need help in parsing an alloy composition string into its elements and percentages

I have created a rexexp function in Access 2010 and am attempting to write a query that parses a metal alloy composition string into individual elements and their respective percentages.
A couple examples of the alloy string are:
bi50 pb24.95 sn12.5 cd12.5 ag.05
and
sn96.5 ag3 cu.5
So far, I have successfully used regular expressions to get the first element (EL1), the first percent (%1), and the second element (EL2). But have not been able to get further. The query I have written so far is:
SELECT tJobTime.Alloy,
UCase(regexp([alloy],"[a-z]+",False)) AS EL1,
regexp([alloy],"\d+\.?\d+",False) AS [%1],
UCase(regexp([alloy],"\s[a-z]+",False)) AS EL2,
regexp([alloy],"[a-z]+\s\d",False) AS [%2]
'Have not gone further because not sure of the correct regexp pattern
FROM tJobTime;
I am very new to regular expressions and would appreciate any help.

Naming words inside square brackets in Dictionaries and Lists

We are having a naming issue. if we have dictionary:
dictionary[key]
or a list
list[1]
list[3:4]
list[:3]
what are the names of the words inside "[" "]", accessors? parameters? keys?
Regarding a dictionary, the name given to the value within the square brackets is a key. This is because a Dictionary is a key-value pair repository. An example of this use can be found in Microsoft's definition of a Dictionary item property here.
For a list, the name given to the value within the square brackets is an index. This is because it is used to select an item from the list at the specified (usually zero-based) index. Again, an example of this naming convention can be found here.
Note that whilst I have included links to Microsoft documentation in this answer, the use of "key" and "index" for dictionaries and lists (respectively) is a convention used through most, if not all, programming languages.

regular expression to extract insert sql statement from a text file and to check for hardcoded parameters

I have a bunch of sql statements updated by my team developers.
I intend to run a check before these statements are run against a db.
for example, check if a certain column is hardcoded instead of being fetched from the respective table (foreign key)
for example:
INSERT INTO [Term1] ([CreatedBy]
,[CreateUser]) values(1,'asdadad')
where 1 is hardcoded value.
Is there a regular expression that can extract all insert statements from the file so that they can be parse?
I tried with this expression http://regexlib.com/REDetails.aspx?regexp_id=1750 but it didnot work
You may need to run a multi-level regex on this. First parse the entire parameter string from the whole query, then parse each individual field from the paramter string that you previously got to get each one specifically ignoring all the other characters that may come up.

Skype source files with smiles regex patterns

Anyone knows where to get skype source files with regex patterns for smiles?
Want to understand how they are working.
I have spend few days trying to recreate exact smiles recognition and yet haven't figured proper pattern.
Can anyone provide some info about it?
Thanks ;)
I wouldn't do it with regex.
I'd use a Map, where the keys are the smiley characters and the values are the URLs to the smiley pics. Then I'd iterate over the map entries and replace all found keys with the equivalent values.
Unfortunately you are not saying what programming language this is about, so here's a simple Java implementation:
Map<String,String> smileyMap = new HashMap<String, String>();
smileyMap.put(":-)", "simpleSmiley.png");
smileyMap.put(":-(", "sadSmiley.png");
// etc.
String text = null;// wherever you get the text from
for(Entry<String, String> entry : smileyMap.entrySet()){
text=text.replace(entry.getKey(),
"<img src=\"http://my.smiley.server/"+ entry.getValue() + "\" />");
}
// now text contains the smileys as HTML images