PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Regular Expression Syntax Sugar

Regular Expression Syntax Sugar

Regular Expression Syntax Sugar is a feature.

Some languages have special syntax for regular expressions.


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

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

Example from JavaScript:
console.log("Hello World".match(/\w/))
Example from Perl:
print "Hello World".match(/\w/)
Example from Ruby:
puts "Hello World".match(/\w/)
Example from Elixir:
~r/integer: \d+/
range-operator-feature.html 路 regular-expressions-syntax-sugar-feature.html 路 semantic-indentation-feature.html

View source

PLDB - Build the next great programming language 路 v2022 Day 33 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com