Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Excuse me, but what you all call impossible is clearly an achievable task. It will not be able to give results for ALL examples, and maybe not the best results, but you can give it various hints, and it will make life easy. A few examples will follow.</p> <p>Also a readable output translating the result would be very useful. Something like: </p> <ul> <li><em>"Search for: a word starting with a non-numeric letter and ending with the string: "ing".</em></li> <li>or: <em>Search for: text that has bbb in it, followed somewhere by zzz</em></li> <li>or: *Search for: a pattern which looks so "aa/bbbb/cccc" where "/" is a separator, "aa" is two digits, "bbbb" is a word of any length and "cccc" are four digits between 1900 and 2020 *</li> </ul> <p>Maybe we could make a "back translator" with an SQL type of language to create regex, instead of creating it in geekish.</p> <p>Here's are a few examples that are doable: </p> <pre><code>class Hint: Properties: HintType, HintString enum HintType { Separator, ParamDescription, NumberOfParameters } enum SampleType { FreeText, DateOrTime, Formatted, ... } public string RegexBySamples( List&lt;T&gt; samples, List&lt;SampleType&gt; sampleTypes, List&lt;Hint&gt; hints, out string GeneralRegExp, out string description, out string generalDescription)... regex = RegExpBySamples( {"11/November/1999", "2/January/2003"}, SampleType.DateOrTime, new HintList( HintType.NumberOfParameters, 3 )); regex = RegExpBySamples( "123-aaaaJ-1444", SampleType.Format, HintType.Seperator, "-" ); </code></pre> <p>A GUI where you mark sample text or enter it, adding to the regex would be possible too. First you mark a date (the "sample"), and choose if this text is already formatted, or if you are building a format, also what the format type is: free text, formatted text, date, GUID or Choose... from existing formats (which you can store in library).</p> <p>Lets design a spec for this, and make it open source... Anybody wants to join?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload