It's usually better to put what you've tried so far: it demonstrates good will on your side, and helps others to understand what you're after.
How (Not) To Ask A Question is a good reading in this case -- your question resembles some homework. Otherwise, you have to be prepared to answers like this
$str = 'Data';
that make me feel smart but that actually waste your time, my time and (unluckily for my XP), other monks' time.
Back to business, answers before this post concentrated in isolating all that's after the colon, more or less, but I suspect that you actually want to get rid of both 'Some text1 : ' and ' Some Text2'. The final word is up to you, so: what do you need exactly, and what have you tried so far?
Update: it seems that matze answered just before I was posting my comment, with a solution pointing towards my interpretation of your question. Good for you?
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
Don't fool yourself.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.