Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^7: How can I expand my substring?

by Corion (Patriarch)
on Jul 22, 2014 at 13:11 UTC ( [id://1094627]=note: print w/replies, xml ) Need Help??


in reply to Re^6: How can I expand my substring?
in thread How can I expand my substring?

You could play around with the length $1 expression and try to limit that, but I'm not sure what corner cases would be relevant.

See perlop on how s///e works.

Replies are listed 'Best First'.
Re^8: How can I expand my substring?
by Anonymous Monk on Jul 22, 2014 at 13:59 UTC
    Thanks again, is it possible to break your code down a bit?
    Like in using more lines I mean, so I can then use and if clause in limiting the length $1 as you suggest...

      Sorry, but I won't do your programming for you.

        I am very sorry, I did not mean at any point that you should write the code for me...I was just wondering if you would be kind enough to re-write your substitution statements in more lines instead of 1. Then I would be able to insert the if clause and restrain the expanding to +-200 that I want, that's all...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2024-04-18 07:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found