easy regex question: stops on some white space?

Samuel Baldwin shardz4217-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Sat Jun 9 21:07:21 EDT 2007


Wouldn't s/infod6/ /g  in perl solve the problem?
just replace the whitespace ( / / ) with whatever you want, but since you
want it gone, that'd be
your best bet. The g is for global, supposing infod6 shows up again.

You can just omit the stuff before infod6 by hand if you want, or you can
run it thru:
s/[\d\D]*infod6/ /
Again, just remove the whitespace in / / to make it //. (No whitespace).

I'm assuming you're using perl or cgi.

Hope this helps.
-- 
Samuel (shardz)

Shardz's Igloo:
shardz.homelinux.net

Registered Linux User #410639

-----BEGIN GEEK CODE BLOCK-----
  Version: 3.12
GCS/E/G d- s a---- C++(+++)>$ UBL+++>++++$ P++>++++$
L++>++++$ E---- W++ N o? K? w-- O M-- V- PS(-) PE-- Y+>++ PGP>++
t++(t*) 5+(+++) X?>++ R+>++ tv b++ DI+ D+ G>++++ e->+++ h! !r !z
------END GEEK CODE BLOCK------


amarok.kde.org
defectivebydesign.org

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.






More information about the Discuss mailing list