I need to create b from a :
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str37 a str27 b "CT Angio Head to Feet (First 12 mths)" "CT Angio (First 12 mths)" "Specials^02_PAN_FeetFirstCAP (Adult)" "Specials^02_PAN_CAP (Adult)" "Chest_Abdomen-_Trauma_Head/First" "Chest_Abdomen-_Trauma_" "Chest_Abdomen-Non_Head-First_Con" "Chest_Abdomen-Non__Con" "Chest_Abdomen-Routine_Head_First" "Chest_Abdomen-Routine_" "Chest_Abdomen-Single_Head_First" "Chest_Abdomen-Single_" "ChestAbdomen-Oncology_Head_First" "ChestAbdomen-Oncology_" "Feet First_Prone_Fluoro" "_Prone_Fluoro" "Prone_Planning_Feet_First" "Prone_Planning_" "_Supine_Feet_First/Fluoro" "_Supine_/Fluoro" "_Supine_Feet_First Planning" "_Supine_ Planning" "Head_First_Prone_Fluoro" "_Prone_Fluoro" "Prone_Head_First Planning" "Prone_ Planning" "Head_First_Supine_Fluoro" "_Supine_Fluoro" "Head_First_Supine_Planning" "_Supine_Planning" end
That means I need to delete "head to feet", "feet to head", "feet first", "head first".
These could be anywhere in the text.
Space(s) or any characters (-, _ , /, ...) could be between feet and first (or between head and first)
I really appreciate any advice and help.
Regards,
0 Response to Deleting part of a text in a string variable
Post a Comment