I’m trying to understand how can I use regular expressions in express js, I want to load a page if the url has the form ‘/blog_update/’ and then whatever string but it just wont work
it gives back an error saying: Cannot GET /blog_update/my_title
app.get(/^\/blog_update\/[.*]/, function(req, res){
res.render('blog_update' , {locals:{title:'Update' }});
});
Don’t character class but :