Sponsored Content
Full Discussion: Need Help with PHP REGEX
Top Forums Shell Programming and Scripting Need Help with PHP REGEX Post 302395635 by o0110o on Tuesday 16th of February 2010 02:05:50 PM
Old 02-16-2010
Quote:
Originally Posted by Neo
Looks good. Thanks for posting.

---------- Post updated at 18:51 ---------- Previous update was at 18:48 ----------

OBTW, your code will run faster if you download and install GeoIP vs call across the net to HostIP each time.

Can I install GeoIP in RED HAT Linux? My server runs RED HAT.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Regex

Hello I need to make a regex. I have a file myfile, in this file I want to find a number situated after PAYSLOT= Before PAYSLOT is the begining of line (I guess ^) and after the number is the end of line (I guess $) . I want to echo this number (I guess $1) and put it in my variable payslot.... (5 Replies)
Discussion started by: pppswing
5 Replies

2. Shell Programming and Scripting

regex help

I would like to search strings composed by only one type of charachter for example only strings composed by the charachter 'b' is it right? $egrep '\<(b+)+\>' filename Could be there some side effects? Regards. (1 Reply)
Discussion started by: and77
1 Replies

3. Shell Programming and Scripting

REGEX help

Hi Guys, I'm trying to write a script that will strip out a session id from an html webpage. I am missing something on the regex for parsing a variable. I am trying to get just the alpha-numeric value for scriptSessionId from this text: <script type="text/javascript">if(!JAWR){var JAWR =... (2 Replies)
Discussion started by: tank126
2 Replies

4. Shell Programming and Scripting

Converting perl regex to sed regex

I am having trouble parsing rpm filenames in a shell script.. I found a snippet of perl code that will perform the task but I really don't have time to rewrite the entire script in perl. I cannot for the life of me convert this code into something sed-friendly: if ($rpm =~ /(*)-(*)-(*)\.(.*)/)... (1 Reply)
Discussion started by: suntzu
1 Replies

5. UNIX for Advanced & Expert Users

Vi Regex help

Can someone tell me what is going with this expression :%s/<C-V><C-M>/. Is there a way to get a more useful message if the carriage return has been deleted? http://objectmix.com/editors/149245-fixing-dos-line-endings-within-vim.html#post516826 Why does this expression work for... (1 Reply)
Discussion started by: cokedude
1 Replies

6. Shell Programming and Scripting

regex

hello, i'm quite new to regex and Perl in general. What i need is a regex that does this trasformatiuon: input : S45020:97,0; S45020:45,1; output : crrout:97; errout:45; there are some other combination but they're useless for the comprehension of the regex i need I need it for some... (2 Replies)
Discussion started by: perdidohate
2 Replies

7. UNIX for Dummies Questions & Answers

read regex from ID file, print regex and line below from source file

I have a file of protein sequences with headers (my source file). Based on a list of IDs (which are included in some of the headers), I'd like to print out only the specified sequences, with only the ID as header. In other words, I'd like to search source.txt for the terms in IDs.txt, and print... (3 Replies)
Discussion started by: pathunkathunk
3 Replies

8. Shell Programming and Scripting

PHP - Regex for matching string containing pattern but without pattern itself

The sample file: dept1: user1,user2,user3 dept2: user4,user5,user6 dept3: user7,user8,user9 I want to match by '/^dept2.*/' but don't want to have substring 'dept2:' in output. How to compose such regex? (8 Replies)
Discussion started by: urello
8 Replies

9. Shell Programming and Scripting

Perl, RegEx - Help me to understand the regex!

I am not a big expert in regex and have just little understanding of that language. Could you help me to understand the regular Perl expression: ^(?!if\b|else\b|while\b|)(?:+?\s+){1,6}(+\s*)\(*\) *?(?:^*;?+){0,10}\{ ------ This is regex to select functions from a C/C++ source and defined in... (2 Replies)
Discussion started by: alex_5161
2 Replies

10. Shell Programming and Scripting

Sendmail K command regex: adding exclusion/negative lookahead to regex -a@MATCH

I'm trying to get some exclusions into our sendmail regular expression for the K command. The following configuration & regex works: LOCAL_CONFIG # Kcheckaddress regex -a@MATCH +<@+?\.++?\.(us|info|to|br|bid|cn|ru) LOCAL_RULESETS SLocal_check_mail # check address against various regex... (0 Replies)
Discussion started by: RobbieTheK
0 Replies
flowtop(8)                                                      netsniff-ng-toolkit                                                     flowtop(8)

NAME
flowtop - provide top-like netfilter connection tracking information SYNOPSIS
flowtop [--city-db <path>][--country-db <path>] [-T|--tcp][-U|--udp][-v|--version][-h|--help] DESCRIPTION
flowtop is a tiny tool to print human-readable netfilter connection tracking information. EXAMPLES
flowtop Show only TCP flows flowtop --udp Show only UDP flows flowtop --city-db /usr/share/GeoIP/GeoIPCity.dat Use the specified GeoIP city database flowtop --country-db /usr/share/GeoIP/GeoIP.dat Use the specified GeoIP country database OPTIONS
-T|--tcp Only show TCP flows (default) -U|--udp Only show UDP flows -s|--show-src Also include flow source in top output --city-db Path to GeoIP city database --country-db Path to GeoIP country database -v|--version Print version. -h|--help Print help text and lists all options. AUTHOR
Written by Daniel Borkmann <daniel@netsniff-ng.org> DOCUMENTATION
Documentation by Emmanuel Roullit <emmanuel@netsniff-ng.org> BUGS
Please report bugs to <bugs@netsniff-ng.org> 2012-06-29 flowtop(8)
All times are GMT -4. The time now is 08:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy