in reply to
Re^2: Parsing a Word placed between special characters
in thread Parsing a Word placed between special characters
I agree, the input is unclear.
I have a file called names.txt with the following content john[JM]mcgroddystephen[SG]gomseyyuri[YA]alchenko
I was trying to extract the initials placed between special characters [ and ] and output this to a new file initials.txt as
I hope that I have clarified the question. Thanks once again to those who guided me the correct regex. Regards, PS.
Use two parentheses: (Like this: :) )
Use one parenthesis: (Like this: :)
Reverse direction of the smiley: (Like this: (: )
Use angle/square brackets instead of parentheses
Use C-style commenting to set the smiley off from the closing parenthesis
Make the smiley a dunce: (:>
I disapprove of emoticons
Results (630 votes),