Skip to content

Tag: perl

Java Compilation vs Perl Compilation

How different is the compilation procees of Java and Perl ? Both produce a byte code but what happens after that? Is the interpretation in perl and conversion from object code to machine code in java is all that is different? If so then why cant Java be a scripting language? Answer The first thing to note is …

How to match any combination of letters using regex?

How can I match letters a,b,c once in any combination and varying length like this: The expression should match these cases: but should not match these ones: Answer Use regex pattern You can use this pattern with any set and size, just replace [abc] with desired set… Example: (above output is from myreg…