Appending various strings between two delimeters in one string. python
Question: I've been stuck here a day. So I thought to ask the experts. I am reading
contents from a file which has data in form

    
    
    |something|
    |something else|
    |something_1
     something_2
     someting_3|
    |something blah blah|
    

.. and so on.. so as you guys figured it out.. the delimiter is '|' now.. I
want the output in following form |something| |something else|
|something_1_something_2_someting_3| |something blah blah| basically
everything between a delimiter in one string Any clues how to go about it
Programming language is Python


Answer: 
    import re
    print re.findall(r"\|[^|]*\|", text)
    

If you haven't seen this before, its a regular expression. Basically you
describe a pattern in text that you are looking for. I recommend reading up on
it if you don't know them.

