Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Can we "grow" a string?

by Anonymous Monk
on Jun 17, 2009 at 12:44 UTC ( #772376=note: print w/ replies, xml ) Need Help??


in reply to Re: Can we "grow" a string?
in thread Can we "grow" a string?

And, do you think you can put some boundaries too? For example, not let the expanded substring go pass letter C on the left or N on the right?


Comment on Re^2: Can we "grow" a string?
Re^3: Can we "grow" a string?
by Corion (Pope) on Jun 17, 2009 at 12:48 UTC

    Of course you can, but maybe you should take a step back and try to describe what problem you're trying to solve instead. Most of these solutions will involve writing actual code though, so maybe you can show what code you've written so far and where you encounter problems.

      The boundaries will have been calculated in the script before expanding the "small" substring and i will know that I must go say, 3 letters on the right at most and 4 letters on the left at most... Everything else works fine in the code of citromatik.
Re^3: Can we "grow" a string?
by citromatik (Curate) on Jun 17, 2009 at 13:23 UTC

    I already gave you some working code to start playing with. I'm sure you can modify it to fit your own needs. You only need to understand how the snippet works. If you are confused by any part of the code, don't hesitate to ask again. Please, show me that you are more interested than me in solving your problem!

    citromatik

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://772376]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2014-07-31 15:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (249 votes), past polls