473,382 Members | 1,563 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

not (!) operator in regex

is there a not (!) operator in regex? If so, how does one use it. I
am unable to find this information.

Thanks
Nov 16 '05 #1
4 24250
Chris Kimmel wrote:
is there a not (!) operator in regex? If so, how does one use it. I
am unable to find this information.
There is and the character is '!'.
I cannot remember off the top of my head at the moment how to use them.
Try regexlib.com
Do a search for negative lookaheads and lookbehinds (I think thats what
theyre called)

HTH
JB
Thanks

Nov 16 '05 #2
Hi, Chris

this is ^ symbol. E.g. [^12] will match any character except 1 or 2.
See this link for more details
http://msdn.microsoft.com/library/de...geElements.asp

HTH
Alex

"Chris Kimmel" <cd******@yahoo.com> wrote in message
news:b1************************@posting.google.com ...
is there a not (!) operator in regex? If so, how does one use it. I
am unable to find this information.

Thanks

Nov 16 '05 #3
Chris Kimmel wrote:
is there a not (!) operator in regex? If so, how does one use it. I
am unable to find this information.
There is and the character is '!'.
I cannot remember off the top of my head at the moment how to use them.
Try regexlib.com
Do a search for negative lookaheads and lookbehinds (I think thats what
theyre called)

HTH
JB
Thanks

Nov 16 '05 #4
Hi, Chris

this is ^ symbol. E.g. [^12] will match any character except 1 or 2.
See this link for more details
http://msdn.microsoft.com/library/de...geElements.asp

HTH
Alex

"Chris Kimmel" <cd******@yahoo.com> wrote in message
news:b1************************@posting.google.com ...
is there a not (!) operator in regex? If so, how does one use it. I
am unable to find this information.

Thanks

Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul Porcelli | last post by:
I have the following code(excerpt) which grabs some lines from a syslog file and adds any found in the range to an array. @lines=();@vvlines=(); $t = new Net::Telnet (Timeout => 30, Prompt =>...
7
by: netclectic | last post by:
Hi folks, i've searched and searched and can't find any example of what i'm trying to do. Essentially (i think) i need to add a new operator to Number. I'm using eval to evaluate expressions...
17
by: sgane2001 | last post by:
Hi, I'm using pcre.c to provide regex support for my application software. I want to know how to do 'AND' operation in this. I didn't got any useful info from the net. Is this operator...
0
by: Chris Kimmel | last post by:
is there a not (!) operator in regex? If so, how does one use it. I am unable to find this information. Thanks
2
by: Jan Sika | last post by:
Try this: Console.WriteLine(("ab" Like "*a*b*").ToString) Console.WriteLine(("aa" Like "*a*a*").ToString) Result: True False ???????????
2
by: Ed Brown | last post by:
I'm working on a VB.Net application that needs to do quite a bit of string pattern matching, and am having problems using the "LIKE" operator to match the same string twice in the pattern. For...
6
by: Extremest | last post by:
I have a huge regex setup going on. If I don't do each one by itself instead of all in one it won't work for. Also would like to know if there is a faster way tried to use string.replace with all...
7
by: Extremest | last post by:
I am using this regex. static Regex paranthesis = new Regex("(\\d*/\\d*)", RegexOptions.IgnoreCase); it should find everything between parenthesis that have some numbers onyl then a forward...
3
by: aspineux | last post by:
My goal is to write a parser for these imaginary string from the SMTP protocol, regarding RFC 821 and 1869. I'm a little flexible with the BNF from these RFC :-) Any comment ? tests= def...
15
by: morleyc | last post by:
Hi, i would like to remove a number of characters from my string (\t \r \n which are throughout the string), i know regex can do this but i have no idea how. Any pointers much appreciated. Chris
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.