Re: IPTables and RegEx

2006-05-13 Thread Richard Bagshaw
:-) Richard D. Bolliger wrote: Richard Bagshaw am Samstag, 13. Mai 2006 15.56: Peeps, I'm very new to perl and I have been trying to solve a problem for a few days now, I am reading a file that I use to setup my firewall rules on a Linux box, the file contains many lines, but as an exam

IPTables and RegEx

2006-05-13 Thread Richard Bagshaw
Peeps, I'm very new to perl and I have been trying to solve a problem for a few days now, I am reading a file that I use to setup my firewall rules on a Linux box, the file contains many lines, but as an example I will show just two here :- iptables -A INPUT -p tcp -s 123.45.678.90 --dport 2

Re: Regex and bad words

2006-05-06 Thread Richard Bagshaw
Howdi, This one got me thinking, you could just match on something as simple as /ass/gi but as you say this would also flag up "harassment" etc, the only way I can see of doing this is either have a big list, or only allow words through that have a-z characters on both sides of the word. So