Click here to Skip to main content
15,900,110 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: sub string using user input Pin
dandy7231-Oct-21 3:19
dandy7231-Oct-21 3:19 
GeneralRe: sub string using user input Pin
Cp-Coder31-Oct-21 2:33
Cp-Coder31-Oct-21 2:33 
GeneralRe: sub string using user input Pin
Gerry Schmitz31-Oct-21 7:38
mveGerry Schmitz31-Oct-21 7:38 
AnswerRe: sub string using user input Pin
Johnny J.30-Oct-21 22:59
professionalJohnny J.30-Oct-21 22:59 
GeneralRe: sub string using user input Pin
OriginalGriff30-Oct-21 23:31
mveOriginalGriff30-Oct-21 23:31 
GeneralRe: sub string using user input Pin
Mike Hankey31-Oct-21 8:03
mveMike Hankey31-Oct-21 8:03 
AnswerRe: sub string using user input Pin
Eddy Vluggen31-Oct-21 2:50
professionalEddy Vluggen31-Oct-21 2:50 
GeneralEureka! regex matching with stored procedures Pin
honey the codewitch30-Oct-21 8:57
mvahoney the codewitch30-Oct-21 8:57 
Holy state machines batman!
The SQL code to make this work is ridic

It took me hours including relearning some lesser used SQL commands. No weirdness like .NET in the DB
Calling this
SQL
EXEC [dbo].[Example_MatchCommentBlock] @value= N'foo  /* test //*  bar  /* baz *//* */ fubar'

Yields this resultset (positions are 0 based, unlike most DB string pos functions)
Position	Value	                        Length
5           /* test //*  bar  /* baz */	    27
32	        /* */	                        5


It works using SELECTs over state machine tables. I'm about to make the tokenizer rendition, and then finally, the ones that don't use tables, but are just SQL procs.

Hooaah! *cracks knuckles*

Triple tier validation generation coming soon. wowza. I'm on fire today. Big Grin | :-D
Real programmers use butterflies

GeneralRe: Eureka! regex matching with stored procedures Pin
jsc4230-Oct-21 10:29
professionaljsc4230-Oct-21 10:29 
GeneralRe: Eureka! regex matching with stored procedures Pin
honey the codewitch30-Oct-21 10:46
mvahoney the codewitch30-Oct-21 10:46 
GeneralRe: Eureka! regex matching with stored procedures Pin
Nelek30-Oct-21 12:46
protectorNelek30-Oct-21 12:46 
GeneralRe: Eureka! regex matching with stored procedures Pin
honey the codewitch30-Oct-21 13:37
mvahoney the codewitch30-Oct-21 13:37 
GeneralRe: Eureka! regex matching with stored procedures Pin
Nelek30-Oct-21 22:05
protectorNelek30-Oct-21 22:05 
GeneralRe: Eureka! regex matching with stored procedures Pin
honey the codewitch30-Oct-21 22:10
mvahoney the codewitch30-Oct-21 22:10 
GeneralRe: Eureka! regex matching with stored procedures Pin
Chris Maunder31-Oct-21 6:01
cofounderChris Maunder31-Oct-21 6:01 
GeneralRe: Eureka! regex matching with stored procedures Pin
honey the codewitch31-Oct-21 6:42
mvahoney the codewitch31-Oct-21 6:42 
GeneralRe: Eureka! regex matching with stored procedures Pin
Chris Maunder31-Oct-21 6:53
cofounderChris Maunder31-Oct-21 6:53 
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 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   482 votes