Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.

frustrated "No match on" regular expression

Login or Register to Reply

Thread Tools Search this Thread
# 1  
frustrated "No match on" regular expression

[frustrated "No match on" regular expression]
attempt to filter "dsl.[many]
. . .any pointers?

# attempt at egrep regular expression to match 
# adsl-63-199-245-128.dsl.snd []
* ^Received:.*dsl+\.[-a-z0-9_]+\.pacbell+\.net
  LOG="(PacBell DSL)  "

procmail: [11390] Sat Apr 17 13:57:12 2004
procmail: No match on "^Received:*dsl+\.[-a-z0-9_]+\.pacbell+\.net"
procmail: Assigning "VERBOSE=no"
From  Sat Apr 17 13:57:12 2004
  Folder: /var/spool/mail/frank                                         1307

Apr 17 13:57:12 mailhost sendmail[11384]: i3HHv4Q11384: from=, size=883, class=0, nrcpts=1, msgid=<>, proto=SMTP, daemon=MTA, relay=adsl-63-199-245-128.dsl.snd []

Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Search file containing ps results for a match "my.cnf" and then for a second match . "ok:" and
I need to find two matches in the output from ps. I am searching with ps -ef |grep mysql for: my.cnf /bin/sh /usr/bin/mysqld_safe --defaults-file=/data/mysql/master/agis_core/etc/my.cnf after this match I want to search back and match the hostname which is x number of lines back, above the...... Shell Programming and Scripting
Shell Programming and Scripting
Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"
Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing...... Shell Programming and Scripting
Shell Programming and Scripting
Regular Expression doesn't match dot "." in a string
hello, I am writting a regular expression that intend to match any tunnel or serial interface but it doesn't mtach any serial sub-interface. For example, statement should match "Tunnel3" or "Serial0/1" but shouldn't match "Serial0\1.1" (doesn't include dot ".") I tried the following but...... Shell Programming and Scripting
Shell Programming and Scripting
cshell integer expression from "0000" to "1999"
I have 2000 files named like "file-fr0000.log", "file-fr1999.log"... I wanna generate the file names automatically in the following c shell script: set fr = 0 while ($fr <= 1999) grep "ENERGY" file-fr$fr.log > data.dat @ fr = ( $fr + 1 ) end The above will generate file names...... Shell Programming and Scripting
Shell Programming and Scripting
Regular expression to extract "y" from "abc/x.y.z" .... i need regular expression
Regular expression to extract "y" from "abc/x.y.z"... Linux
PREG_QUOTE(3)								 1							     PREG_QUOTE(3)

preg_quote - Quote regular expression characters

string preg_quote NULL (string $str, [string $delimiter])
preg_quote(3) takes $str and puts a backslash in front of every character that is part of the regular expression syntax. This is useful if you have a run-time string that you need to match in some text and the string may contain special regex characters. The special regular expression characters are: . + * ? [ ^ ] $ ( ) { } = ! < > | : -
o $str - The input string. o $delimiter - If the optional $delimiter is specified, it will also be escaped. This is useful for escaping the delimiter that is required by the PCRE functions. The / is the most commonly used delimiter.
Returns the quoted (escaped) string.
+--------+--------------------------------+ |Version | | | | | | | Description | | | | +--------+--------------------------------+ | 5.3.0 | | | | | | | The - character is now quoted | | | | +--------+--------------------------------+
Example #1 preg_quote(3) example <?php $keywords = '$40 for a g3/400'; $keywords = preg_quote($keywords, '/'); echo $keywords; // returns $40 for a g3/400 ?> Example #2 Italicizing a word within some text <?php // In this example, preg_quote($word) is used to keep the // asterisks from having special meaning to the regular // expression. $textbody = "This book is *very* difficult to find."; $word = "*very*"; $textbody = preg_replace ("/" . preg_quote($word, '/') . "/", "<i>" . $word . "</i>", $textbody); ?>
Note This function is binary-safe.
PCRE Patterns, escapeshellcmd(3). PHP Documentation Group PREG_QUOTE(3)

Featured Tech Videos