Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How do I insert a space after 30+ consecutive non-space characters?

by amarceluk (Beadle)
on May 23, 2002 at 14:45 UTC ( [id://168777]=note: print w/replies, xml ) Need Help??


in reply to How do I insert a space after 30+ consecutive non-space characters?

jmcnamara is right, of course. If I may venture some further explanation: Remember that character classes and ranges, like a-z and \s, represent any of a number of characters, and are only used in the "find" rather than the "replace" part of a regex. It's impossible to use \s in a replacement because \s could be any one of a space, \t, \n, \r, or \f. As jmcnamara demonstrated, you need to specify the exact character you want to use as the replacement.
  • Comment on Re: How do I insert a space after 30+ consecutive non-space characters?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-25 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found