473,414 Members | 1,729 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,414 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 24261
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.