Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: simple regexp question

by Punitha (Priest)
on Nov 21, 2007 at 10:57 UTC ( #652102=note: print w/replies, xml ) Need Help??


in reply to Re: simple regexp question
in thread simple regexp question

In customising the andreas1234567 code, you can use it as

use strict; my $str = q{sometext with conetnst add kklkk&dfaf:dfa▄─mldd÷;}; $str =~ s/&([^;]+);/&$1 ;/g; #This includes all the characters til +l the semicolon print $str;

Punitha

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://652102]
help
Chatterbox?
[shmem]: Discipulus: yummy. I like those. Didn't have them for some time now, forgot the name. Should go get some...
[shmem]: Lasy_Aleena: correct, although for clarity I'd use an if() block, not a statement modifier
[shmem]: this allows you to add an else if maintainance makes it neccesary
[Lady_Aleena]: shmem, okeydokey.
[shmem]: ...or logging or debugging or such
[Lady_Aleena]: I'm glad I've sort of learned command line grep so I can find where and how I've used this sub.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2017-04-27 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (504 votes). Check out past polls.