Hi dear reader,
Today’s post is about Rextester. An online tools for anyone who finds them useful, Initially was started as online .net regular expression tester.
Regex tester – .net regex tester.
Regex replace – .net regex replacement.
Regex reference – short regex reference.
Diff checker – find difference between two text fragments.
Run code – online compiling and execution for some languages.
Rextester provides online code compilation for C# or also named C sharp, using .NET framework 4. The executing code will be given max 5 seconds of CPU time and limited memory (~100 mb). Also executing code will run in an appdomain with basic execution rights, reflection and thread control privileges only.
The entry point for you code is given Main method in type Program in namespace Rextester. This entry point can’t be changed.
C sharp types from the following assemblies are available:
- System.dll
- System.Core.dll
- System.Data.dll
- System.Data.DataSetExtensions.dll
- System.Xml.dll
- System.Xml.Linq.dll
- Microsoft.CSharp.dll – when C# is used
- Microsoft.VisualBasic.dll – when Visual Basic is used
- System.Web.dll
- System.ComponentModel.DataAnnotations.dll
- System.ComponentModel.Composition.dll
SQL Server 2008 R2 server is also supported. There is only one database that queries executed. Queries executed on behalf dbowner so all sort of actions are allowed including DDL queries. However, all actions run in transaction which is rolled back immediately after execution is over. This way any desired objects may be built, populated with data and worked on within the scope of one request. There is 10 seconds limit for work to be completed. Execution of queries is achieved using ADO.NET mechanisms, in particular SqlDataReader type. This reader is also monitored for memory and CPU consumption.
‘GO’ statement just like in T-SQL has special meaning: ‘GO’ will be removed from your code, but statements separated by ‘GO’ will be executed separately, in different batches. So, for example, if you want to create a function and later use it in select statement you have to separate create statement and select statement by ‘GO’, otherwise you’ll receive an error from parser since in select statement you would be referring to a function which doesn’t yet exist.
For convenience there is simple pre-built schema, shown here.
There are some other languages which run on linux. Here are compiler versions:
- Assembly – nasm 2.09.04
- C++ – g++ 4.5.2 (g++ -Wall)
- C – gcc 4.5.2 (gcc -Wall)
- Haskell – ghc 6.12.3
- Java – Sun’s implementation of java, compiler version 1.6.0_26 (javac -Xlint -encoding UTF-8 | java -Dfile.encoding=UTF-8)
- Javascript – V8 3.12.3
- Lua – lua 5.0.3
- Objective-C – gcc 4.5.2 (gcc -Wall -lobjc)
- Pascal – fpc 2.4.0
- Perl – perl 5.10.1 (perl -w)
- Php – php 5.3.5
- Python – python 2.7.1
- Ruby – ruby 1.8.7 (ruby -w -W1)
I do not intent to promote something here but I liked something and sharing is good.
For more details follow the www.rextester.com
Related articles
- Java Split on Regex (stackoverflow.com)
- The true power of regular expressions (nikic.github.com)
- Jumpstart Regular Expression Tutorial for Google Analytics users (Advanced-Web-Metrics.com)
- Regex to parse a string with an = sign (stackoverflow.com)
- Use Regular Expressions to Find Anything in your Gmail Mailbox (labnol.org)
- A regex puzzle to start your weekend (cartesianproduct.wordpress.com)
- Javascript Regex Match & Replace (daniweb.com)
- Retrieving boost regex matches (stackoverflow.com)