I would like to know if Regular Expressions are Universal for all languages like PHP, Javascript, etc.?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your question is kind of ambiguous to me: You must define what you mean with Universal, but here’s my answer:
Regular Expressions are used in almost every programming language like PHP, JavaScript, Perl, Awk, Java, C#, etc…
The thing is that the syntax may vary a little bit from one language to another, and each language may implement them in a different way, and include or not some particular features (usually features that allow regex to recognize not only regular languages, but also others like Context-Free ones)
If you create a new programming language, you can add them regexes feature, but that doesn’t mean the syntax will be exactly the same as regexes syntax in .NET, for example. And not only that: The implementation of the engine will surely be different (more/less efficient) than others…