Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

easy regex question: stops on some white space?



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.







BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org