license-list-XML icon indicating copy to clipboard operation
license-list-XML copied to clipboard

document regular expression examples

Open jlovejoy opened this issue 4 years ago • 7 comments

example with GCC exception where could be "give(s)?" or "give|gives" to get same outcome

might be good to have list of example of markup with explanation on where used (instead of having to find a license with similar markup to copy)

jlovejoy avatar Jul 08 '21 16:07 jlovejoy

@goneall - can you confirm we use Java regular expressions (and if so, could we link to that as reference?)

jlovejoy avatar Jul 08 '21 16:07 jlovejoy

The format for Regex is POSIX extended regular expression (ERE).

The Regex format is specified in the license template subsection of the license matching guidelines.

goneall avatar Jul 08 '21 16:07 goneall

FYI - there is a GSoC project to update the Python license matching library now known as yalm(yet another license matcher). One of the challenges we are facing in this project is how to handle more complex regular expressions in the matching.

@m1kit is the student working on this project and may propose some suggestions to avoid certain patterns in the regular expressions to enable more accurate and higher performance license matching.

goneall avatar Jul 08 '21 16:07 goneall

I'm going to assign this one to myself so I can coordinate with the GSoc project on the updates.

goneall avatar Jul 08 '21 16:07 goneall

@zvr to summarize where we talk about or mention xml format for further discussion on upcoming call

jlovejoy avatar Aug 11 '22 16:08 jlovejoy

@zvr - this is sort of the same or a subset of #1369, should we consolidate into that issue so we have one place??

jlovejoy avatar Aug 11 '22 17:08 jlovejoy

Mentioned on 2022-09-08 call: Each regular expression should be documented in the minutes / issue / meeting etc. to confirm that the team agrees variations will be discussed and approved.

swinslow avatar Sep 08 '22 16:09 swinslow