janissl / simple-java-regex-tester Goto Github PK
View Code? Open in Web Editor NEWA GUI application for simple testing of Java regular expressions if they have any matches.
A GUI application for simple testing of Java regular expressions if they have any matches.
If a match for a group that has an asterisk quantifier is null, start and end positions of such matches are displayed in a reverse order (or has a length of -1).
Test example:
Input:
ASV sāka spēlēt aktīvāk, tomēr Somijas izlases aizsardzība bija pārāka. Tad 47. minūte Somijas hokejistiem izdevās pretuzbrukums divi pret vienu un pēc Juhamati Altonena piespēles ar rezultatīvu metienu izcēlās Jonass Kempainens, panākot divu vārtu pārsvaru. ASV izlasei spēles pavedienu tā arī neizdevās atrast, un amerikāņi neguva "golu".
Regex:
([。..!!??…])([\u0002"'\p{Pe}\p{Pf}¹²³]*)(\s+)
Result:
Match 1 Group0 (p.70-71): ([。..!!??…])([\u0002"'\p{Pe}\p{Pf}¹²³]*)(\s+) => '. ' Group1 (p.70): (\s+) => '.' Group2 (p.71-70): ([\u0002"'\p{Pe}\p{Pf}¹²³]*) => '' Group3 (p.71): ([。..!!??…]) => ' ' - - - - - Match 2 Group0 (p.78-79): ([。..!!??…])([\u0002"'\p{Pe}\p{Pf}¹²³]*)(\s+) => '. ' Group1 (p.78): (\s+) => '.' Group2 (p.79-78): ([\u0002"'\p{Pe}\p{Pf}¹²³]*) => '' Group3 (p.79): ([。..!!??…]) => ' ' - - - - - Match 3 Group0 (p.257-258): ([。..!!??…])([\u0002"'\p{Pe}\p{Pf}¹²³]*)(\s+) => '. ' Group1 (p.257): (\s+) => '.' Group2 (p.258-257): ([\u0002"'\p{Pe}\p{Pf}¹²³]*) => '' Group3 (p.258): ([。..!!??…]) => ' ' - - - - -
Suggestion: Match end positions may be omitted in results. May be display a match length instead.
Do not display such results:
Match 1 (Group 2 (-1--1)): 'null'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.