Click here to Skip to main content
15,881,864 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionVerification Algorithm that mortals can use to verify chain of discussion making. Pin
XxKeldecknightxX7-Jan-22 1:45
XxKeldecknightxX7-Jan-22 1:45 
AnswerRe: Verification Algorithm that mortals can use to verify chain of discussion making. Pin
Eddy Vluggen9-Feb-22 1:56
professionalEddy Vluggen9-Feb-22 1:56 
AnswerRe: Verification Algorithm that mortals can use to verify chain of discussion making. Pin
Eddy Vluggen9-Feb-22 12:06
professionalEddy Vluggen9-Feb-22 12:06 
QuestionWildcard Matching Routine Pin
Richard Andrew x6424-Dec-21 9:17
professionalRichard Andrew x6424-Dec-21 9:17 
AnswerRe: Wildcard Matching Routine Pin
Gerry Schmitz25-Dec-21 5:24
mveGerry Schmitz25-Dec-21 5:24 
GeneralRe: Wildcard Matching Routine Pin
Richard Andrew x6425-Dec-21 6:09
professionalRichard Andrew x6425-Dec-21 6:09 
GeneralRe: Wildcard Matching Routine Pin
Gerry Schmitz25-Dec-21 8:25
mveGerry Schmitz25-Dec-21 8:25 
AnswerRe: Wildcard Matching Routine Pin
k505425-Dec-21 7:16
mvek505425-Dec-21 7:16 
Traditionally, the * wildcard in a regular expression is "zero or more instances of the preceding character", so the regex "abc*def" would match "abcdef", "abccccdef" and even "abdef" (0 c's), but not "abccxccdef". It might even match "Hello abcccdef there", depending on whether the regex is considered to be anchored or not. In a traditional regex the '.' wildcard is to match any character. However, if you're writing your own regex parser, you're free to place any meaning on the wildcard characters you want.

The functionality you seem to be trying to reproduce seems very like unix file globbing. If that's what you're trying to do - and you are on a unix like system, you probably have access to glob(3), which does all the heavy lifting for you. There's probably similar functionality for windows.

But maybe you're writing a regex parser for your own purposes. In which case you're free to make up the rules you want. Either way, I'd expect any literals in the regex to be present in any matches found.
Keep Calm and Carry On

GeneralRe: Wildcard Matching Routine Pin
Richard Andrew x6426-Dec-21 1:32
professionalRichard Andrew x6426-Dec-21 1:32 
AnswerRe: Wildcard Matching Routine Pin
englebart8-Feb-22 16:36
professionalenglebart8-Feb-22 16:36 
GeneralRe: Wildcard Matching Routine Pin
trønderen9-Feb-22 6:35
trønderen9-Feb-22 6:35 
GeneralRe: Wildcard Matching Routine Pin
englebart9-Feb-22 15:37
professionalenglebart9-Feb-22 15:37 
GeneralRe: Wildcard Matching Routine Pin
Eddy Vluggen9-Feb-22 16:10
professionalEddy Vluggen9-Feb-22 16:10 
GeneralRe: Wildcard Matching Routine Pin
trønderen10-Feb-22 6:03
trønderen10-Feb-22 6:03 
GeneralRe: Wildcard Matching Routine Pin
englebart10-Feb-22 9:14
professionalenglebart10-Feb-22 9:14 
QuestionTime Complexity of following method? Pin
Member 1269110623-Nov-21 4:09
Member 1269110623-Nov-21 4:09 
AnswerRe: Time Complexity of following method? Pin
Greg Utas23-Nov-21 5:17
professionalGreg Utas23-Nov-21 5:17 
GeneralRe: Time Complexity of following method? Pin
Member 1269110623-Nov-21 18:22
Member 1269110623-Nov-21 18:22 
AnswerRe: Time Complexity of following method? Pin
Member 1269110623-Nov-21 19:05
Member 1269110623-Nov-21 19:05 
AnswerRe: Time Complexity of following method? Pin
Member 1546299610-Dec-21 5:08
Member 1546299610-Dec-21 5:08 
QuestionNUMBER OF COMBINATIONS OF THE ARRANGEMENT OF CAPS Pin
Member 1543482417-Nov-21 13:48
Member 1543482417-Nov-21 13:48 
AnswerRe: NUMBER OF COMBINATIONS OF THE ARRANGEMENT OF CAPS Pin
Greg Utas23-Nov-21 5:14
professionalGreg Utas23-Nov-21 5:14 
QuestionC# Pin
Member 153810723-Oct-21 21:36
Member 153810723-Oct-21 21:36 
AnswerRe: C# Pin
Richard MacCutchan3-Oct-21 21:49
mveRichard MacCutchan3-Oct-21 21:49 
QuestionFunction of algorithm Pin
danindya1-Sep-21 15:52
professionaldanindya1-Sep-21 15:52 

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.