P is for Practical | |
PerlMonks |
Re: confused with stringsby GrandFather (Saint) |
on Jan 11, 2006 at 11:40 UTC ( [id://522407]=note: print w/replies, xml ) | Need Help?? |
Are you given ABCD or are you given the position and length (or start and end) of the substring? Can the * and !'s occur anywhere? You should give a before and after sample. Something like this:
Want to print:
The following code may be a good starting point:
Note that some error checking should be added and that there are a few assumptions about the match string and what the X sequences can actually contain. DWIM is Perl's answer to Gödel
In Section
Seekers of Perl Wisdom
|
|