regex


how can I use a wildcard in restify routes


Being used to express i would write server.get('/*', controller);
However i cannot write '/*' in Restify without getting a error, could someone please help me out here?
A regex expression that could replace the wildcard (server.get(regex, controller)) would be great.
Error:
{"code":"ResourceNotFound","message":"/fdsfsd does not exist"}
Edit:
This is what I have so far: [a-zA-Z0-9$-/:-?{-~!"^_`##\ \ \[]]
Try
server.get(/.*/, controller);
Restify is expecting a full-fledged regular expression and not just a wildcard.
You might also be interested in how to capture parameters with regular expressions.

Related Links

Regex ignore Find and Replace in Notepad++
Perl: How to match a string that is not in a given string [duplicate]
glob2rx in R to get all cells whose last decimal is 5?
Finding file names without a specified character
Perl: quick replacing of occurrences of multiple words in an array
Extract resolution from string
How do I create a Scala Regex that is compiled using Java Pattern.COMMENTS?
Is there a way to search terms in order with RegexpQuery in lucene?
Regex to allow any charcter EXCEPT backslash
Regex: Match a condition, then find the first occurrence of another condition that precedes it on the same line. Possible?
Regex for URL routing - match alphanumeric and dashes except words in this list
R: gsub and capture
Trouble with regex in Perl
Duplicate symbols in regular expressions
NSRegularExpression to remove the rest codes
Regex replace in sublimetext2

Categories

HOME
ios
mongodb
x-editable
bolt-cms
afp
datetime
linear-programming
chronicle
fpdf
gluu
robot
normalization
spi
android-dialer
whitespace
freebsd
calayer
asciidoc
bluej
nservicebus
google-cloud-sdk
apex
watchservice
angular-components
spring-boot-admin
gitlab-ci-runner
gyroscope
line-breaks
apache-httpcomponents
android-button
phonegap-desktop-app
trial
valueinjecter
akka-http
jsplumb
localdb
google-shared-contacts
tensor
google-crawlers
jetty-9
ecdsa
partition
weebly
essbase
rating
jquery-ui-dialog
distributed-lock
default-browser
opal
strip-tags
playback
jquery-ui-accordion
breach-attack
dr-memory
turbo-c
xmllint
app-engine-ndb
groupbox
viewengine
storage-duration
screen-capture
occam-pi
multiple-files
illegalstateexception
genetic
dnx
laravel-forge
oracle-bi
python-2.3
json4s
tabbar
multiscreen
mailx
dhc
iphone-5
structured-programming
solr-boost
genexus-gam
wintersmith
conditional-statements
iscroll4
cvs2git
mklink
physx
citymaps
cpp-netlib
monk
datacontractserializer
fig
data-quality
dirpagination
asp.net-apicontroller
magento-1.6
hebrew
asciiencoding
mongo-shell
confirmation
sshj
polarssl
couchpotato
guice-servlet
wescheme
headless-browser
documentviewer
ekeventkit
cellid
httpcontext.cache
websolr
azure-role-environment
gemstone
soapheader
ssao
formsauthentication
indextank
net-ssh

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