regex


complement of \ with regular expression


I am testing my regular expression and I am getting a bit confused
from my understanding
[] is used to indicate a set of characters
^ is the complement. So [^a] would be a set of any characters excluding a
I am having trouble with this particular bit of regular expression
[^\] This excludes the character set \
I tried testing this on an online regular expression tester with the string a\d\c\e\d but no results would display. I feel that I might be missing something but I am not sure what that could be.
Backslash is the escape character in regular expressions. To refer to it literally, you have to escape it:
[^\\]

Related Links

Vexing regex pattern
String search Regular expressions VB? [duplicate]
merging two data sets on the basis of two columns
How to get sed to take extended regular expressions?
Looping through a list of regex matches and grabbing the first capture group in a loop
Counting occurence with a condition using awk
Find specific date match use of regular expression in shell?
Alter Varnish TTL based on Request URL
r stringdist or levenshtein.distance to replace strings
Regex to Select All Text in String Before Substring
Scala Regex for less than equal to operator (<=)
Capture groups inside string using regular expression
Need a regex to test a specific pattern
C++ regular expression over a stream
VBS Regex pattern word space word
How to do multiple serach and replaces in Text Wrangler grep

Categories

HOME
dynamic-programming
ssl
dom
google-apis-explorer
music
hortonworks-data-platform
android-wear
sql-server-2012
windows-runtime
cql3
antlr
box
spacemacs
build.gradle
py.test
mobilefirst-adapters
silverlight
wavelet
session-cookies
frequency
threadpool
jscrollpane
jquery-jtable
oracle-agile-plm
watchservice
countdown
orientdb-2.1
aerospike
servlet-filters
sfsafariviewcontroller
haml
rgdal
polynomials
confidence-interval
spring-batch-admin
iar
sql-server-2014-express
concurrenthashmap
charts.js
react-redux-form
dokuwiki
dlopen
machine-language
tensor
doctrine-odm
haxm
mask
ecmascript-4
jetty-9
microsoft-translator
sinon
amazon-vpc
es6-promise
btle
polymer-cli
easy-digital-downloads
ulimit
xargs
maven-jetty-plugin
default-browser
website-hosting
fido
recurrence
tpl-dataflow
abbyy
jvm-arguments
lcov
ifc
git-config
webtrends
codeigniter-upload
sizeof
file-management
cucumber-java
mysqladmin
avalonedit
sketching
error-log
solr-boost
size-t
pencilblue
zim-database
information-schema
opensc
lwuit-list
twill
azimuth
asciiencoding
sshj
impdp
blackberry-cascades
arden-syntax
arr
maven-bundle-plugin
xml-dtd
self-organizing-maps
expressionvisitor
dired
openfeint
sharepoint-timer-job
codi
pastebin
sharepoint-feature
nhaml

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App