PLDB
Languages Features Calendar About Lists Add Language
GitHub icon

Regular Expression Syntax Sugar

Regular Expression Syntax Sugar

Regular Expression Syntax Sugar is a language feature.

Some languages have special syntax for regular expressions.

Languages without Regular Expression Syntax Sugar include C, Python, C++

Languages with Regular Expression Syntax Sugar include JavaScript, Ruby, Perl, Dart, CoffeeScript, MIPS architecture

Example from JavaScript:

console.log("Hello World".match(/\w/))

Example from Ruby:

puts "Hello World".match(/\w/)

Example from Perl:

print "Hello World".match(/\w/)

Article source

PLDB - Build the next great programming language. v5.0.0 - Acknowledgements · Email · GitHub