Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: How to replace spaces with different chars?

by AnomalousMonk (Archbishop)
on Jul 07, 2022 at 02:43 UTC ( [id://11145320]=note: print w/replies, xml ) Need Help??


in reply to Re: How to replace spaces with different chars?
in thread How to replace spaces with different chars?

s{ ( [ ] ) | ( [^\w ] ) }{ defined( $1 ) ? $special_chars_re_class : "\\$2" }egr;

I think this needs the /x modifier to work as advertised.


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^3: How to replace spaces with different chars?
by ikegami (Patriarch) on Jul 07, 2022 at 19:13 UTC

    Oops, fixed.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-03-28 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found