I'm working on a multiplatform system. We would like to use regex to test strings in a certain format. The regex would be written once in a db and used by the 3 different platforms. So do you know if there are differences in the manner the regex are written? If yes, is it totally different or only a few things are different?
Here is an example:
[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}
Regards
The difference is that JavaScript is a programming language while .NET is a platform for developing applications. .NET includes among others: class library classes for developing different types of applications such as windows and web applications. common language runtime provides run time services.
In this article, we will know about Java & Javascript, & also see the significant distinction between Java & Javascript. JavaScript is a lightweight programming language (“scripting language”) and is used to make web pages interactive. It can insert dynamic text into HTML.
In Java, the type of a variable is checked at compile-time. JavaScript is a weakly typed language and has a more relaxed syntax and rules. Java is an object-oriented programming language.
Java program has file extension “.Java” and translates source code into bytecodes which is executed by JVM (Java Virtual Machine). JavaScript file has file extension “.js” and it is interpreted but not compiled,every browser has the Javascript interpreter to execute JS code.
Simple regex patterns will be fine across different implementations, however there are defferences for more complex matches. Yet there are limited number of common variations, namely POSIX and Perl regex. So you can have two columns for them in DB, which will be quite enough in most of the cases.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With