![]() Ideally if we know what kind of deviations we might find in the data we can clean the data before the first pattern is applied, like in the following example where multiple spaces are replaced with just one space. Output (SUBSTITUTION): // it looks ok, but it's a trick and must be used with caution Question 1? If there are more than one duplicate all of them will be captured. If there are discrepancies between them, those won't be treated as duplicates. The first pattern searches for identical question_and_answer occurences. I will use 3 patterns to deal with this string. I selected flavor: javascript and set two flags in the regular expression section: g (global) and s (single line). However, the intuition suggests that such cases should be somehow spotted.Īs you mentioned in the comment that you are using I will use this webpage to do the matches and replaces. buccal mucosa.’ differ in number of spaces after 'A.'. ![]() Technically in the given input there are no duplicates as ‘A. In the absence of “Hanks balanced salt solution”, what is the most appropriate media to transport an avulsed? Lichen planus occurs most frequently on the?Įxpected result Lichen planus occurs most frequently on the? Which of the following is the most likely cause of osteoporosis, glaucoma, hypertension and peptic ulcers in a 65 year old with Crohn’s disease? In the absence of “Hanks balanced salt solution”, what is the most appropriate media to transport an avulsed tooth? Lichen planus occurs most frequently on the? I am a novice with respect to regex, so please excuse any inadequacies. So basically what I am saying is I need a regex that can delete all the duplicate mcqs only if the whole mcq matches, not individul lines or sentences. and all the regex that I have used until now deleted duplicates on a line by line basis, thereby deleting options from other questions even though the questions don't match. I have Edit Pad Pro 7,Notepad++,powergrep and sublime text. If a line has less than 10 characters then it is considered to be blank. If those 9 characters are the same the lines are considered to be duplicates. If the selection spans from column 10 to column 18, for example, EditPad Pro compares columns 10 through 18 of each line. The problem is there are many duplicate mcqs and I would therefore like to know if a regex can be created to detect all duplicate mcqs. With this option, EditPad Pro only compares the selected columns. docx file that contains mcqs which are in the format as shown below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |