Click here to Skip to main content
15,891,033 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Eureka! regex matching with stored procedures Pin
honey the codewitch31-Oct-21 7:09
mvahoney the codewitch31-Oct-21 7:09 
GeneralRe: Eureka! regex matching with stored procedures Pin
Chris Maunder1-Nov-21 3:16
cofounderChris Maunder1-Nov-21 3:16 
GeneralRe: Eureka! regex matching with stored procedures Pin
honey the codewitch1-Nov-21 3:35
mvahoney the codewitch1-Nov-21 3:35 
GeneralRe: Eureka! regex matching with stored procedures Pin
Marc Clifton30-Oct-21 11:43
mvaMarc Clifton30-Oct-21 11:43 
GeneralRe: Eureka! regex matching with stored procedures Pin
honey the codewitch30-Oct-21 12:00
mvahoney the codewitch30-Oct-21 12:00 
GeneralRe: Eureka! regex matching with stored procedures Pin
Marc Clifton30-Oct-21 14:37
mvaMarc Clifton30-Oct-21 14:37 
GeneralRe: Eureka! regex matching with stored procedures Pin
PIEBALDconsult30-Oct-21 14:12
mvePIEBALDconsult30-Oct-21 14:12 
GeneralRe: Eureka! regex matching with stored procedures Pin
honey the codewitch30-Oct-21 14:23
mvahoney the codewitch30-Oct-21 14:23 
The procedure returns resultsets based on matches. You can insert those into a table With INSERT INTO ... EXEC/ You can do tokenization too, which returns tokens, that would give you something like your "groups" where it can distinguish between an int field and a literal string for example. IsXXXX indicates that the entire target field matches the expression. MatchXXXX finds all occurrences. Tokenize tokenizes (returning all tokens) - you typically use that for parsing.

Since the data is flat, there's no sense in returning XML. With a big *however*

When I build out Norm, my latest parser generator that can also target SQL, it will return hierarchical resultsets in the format consumable by SQLXML (constructed with OUTER JOINs, special column names, and a parent id to impose a hierarchy so you can get full parse tables as XML. Parse JSON from your database if you like. This will do it, and without using any particularly fancy features. It's "flavored" for MSSQL right now but the templates can be extended easily to support MySQL, Postgre and Oracle since I've been careful to avoid most of the extended database features.
Real programmers use butterflies

GeneralRe: Eureka! regex matching with stored procedures Pin
PIEBALDconsult30-Oct-21 15:26
mvePIEBALDconsult30-Oct-21 15:26 
GeneralRe: Eureka! regex matching with stored procedures Pin
honey the codewitch30-Oct-21 15:37
mvahoney the codewitch30-Oct-21 15:37 
GeneralSunshine, something that simple could never work. Pin
Cp-Coder30-Oct-21 6:01
Cp-Coder30-Oct-21 6:01 
GeneralRe: Sunshine, something that simple could never work. Pin
Marc Clifton30-Oct-21 11:54
mvaMarc Clifton30-Oct-21 11:54 
GeneralRe: Sunshine, something that simple could never work. Pin
Cp-Coder31-Oct-21 2:26
Cp-Coder31-Oct-21 2:26 
GeneralRe: Sunshine, something that simple could never work. Pin
GuyThiebaut30-Oct-21 23:37
professionalGuyThiebaut30-Oct-21 23:37 
GeneralRe: Sunshine, something that simple could never work. Pin
Cp-Coder31-Oct-21 2:30
Cp-Coder31-Oct-21 2:30 
GeneralRe: Sunshine, something that simple could never work. Pin
GuyThiebaut31-Oct-21 2:43
professionalGuyThiebaut31-Oct-21 2:43 
RantIf you can't match UTF32 codepoints, you don't support unicode! Pin
honey the codewitch30-Oct-21 6:01
mvahoney the codewitch30-Oct-21 6:01 
GeneralRe: If you can't match UTF32 codepoints, you don't support unicode! Pin
User 1537592230-Oct-21 6:39
User 1537592230-Oct-21 6:39 
GeneralRe: If you can't match UTF32 codepoints, you don't support unicode! Pin
honey the codewitch30-Oct-21 6:59
mvahoney the codewitch30-Oct-21 6:59 
GeneralRe: If you can't match UTF32 codepoints, you don't support unicode! Pin
Dan Neely1-Nov-21 3:02
Dan Neely1-Nov-21 3:02 
RantAargs!!!!!! Pin
David O'Neil29-Oct-21 14:22
professionalDavid O'Neil29-Oct-21 14:22 
AnswerRe: Aargs!!!!!! Pin
Randor 29-Oct-21 15:18
professional Randor 29-Oct-21 15:18 
GeneralRe: Aargs!!!!!! Pin
David O'Neil29-Oct-21 15:31
professionalDavid O'Neil29-Oct-21 15:31 
GeneralRe: Aargs!!!!!! Pin
David O'Neil29-Oct-21 15:33
professionalDavid O'Neil29-Oct-21 15:33 
GeneralRe: Aargs!!!!!! Pin
CodeWraith29-Oct-21 17:50
CodeWraith29-Oct-21 17:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.