Giter Club home page Giter Club logo

simple-java-regex-tester's People

Contributors

dependabot[bot] avatar janissl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

meimingle

simple-java-regex-tester's Issues

Incorrect order of matched groups and matching positions

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.