Measures Concepts
GitHub icon

Regular Expression Syntax Sugar

Regular Expression Syntax Sugar - language feature

< >
Example from JavaScript, TypeScript:
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+/

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

Languages without Regular Expression Syntax Sugar include Python, C, C++, Objective-C, Cython, C3, Speedie, progsbase, Jule, Tick C

This question asks: Does the language have special syntax for regular expressions?

Read more about Regular Expression Syntax Sugar on the web: 1.

HTML of this page generated by Features.ts

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Day 605 feedback@pldb.io Logout