Click here to Skip to main content
12,691,231 members (31,808 online)

Regular Expressions

 
Questionhow to make username regex for windows forms Pin
sariqkhan30-Sep-12 22:20
membersariqkhan30-Sep-12 22:20 
AnswerRe: how to make username regex for windows forms Pin
Kenneth Haugland30-Sep-12 23:32
memberKenneth Haugland30-Sep-12 23:32 
GeneralRe: how to make username regex for windows forms Pin
sariqkhan1-Oct-12 0:11
membersariqkhan1-Oct-12 0:11 
GeneralRe: how to make username regex for windows forms Pin
Richard MacCutchan1-Oct-12 0:44
mvpRichard MacCutchan1-Oct-12 0:44 
AnswerRe: how to make username regex for windows forms Pin
Manfred R. Bihy2-Oct-12 3:11
mvpManfred R. Bihy2-Oct-12 3:11 
GeneralRe: how to make username regex for windows forms Pin
sariqkhan2-Oct-12 8:22
membersariqkhan2-Oct-12 8:22 
GeneralRe: how to make username regex for windows forms Pin
Manfred R. Bihy4-Oct-12 0:10
mvpManfred R. Bihy4-Oct-12 0:10 
GeneralRe: how to make username regex for windows forms Pin
sariqkhan4-Oct-12 0:27
membersariqkhan4-Oct-12 0:27 
GeneralRe: how to make username regex for windows forms Pin
Manfred R. Bihy4-Oct-12 1:44
mvpManfred R. Bihy4-Oct-12 1:44 
GeneralRe: how to make username regex for windows forms Pin
sariqkhan4-Oct-12 1:55
membersariqkhan4-Oct-12 1:55 
GeneralRe: how to make username regex for windows forms Pin
Manfred R. Bihy4-Oct-12 2:01
mvpManfred R. Bihy4-Oct-12 2:01 
GeneralRe: how to make username regex for windows forms Pin
Peter_in_27804-Oct-12 3:51
memberPeter_in_27804-Oct-12 3:51 
GeneralRe: how to make username regex for windows forms Pin
Peter_in_27802-Oct-12 13:36
memberPeter_in_27802-Oct-12 13:36 
Question[SOLVED] C Code Parsing Pin
Richard Andrew x645-Sep-12 17:03
memberRichard Andrew x645-Sep-12 17:03 
I'm trying to write a scanner using Flex.

The problem is that one of my regex's works in the Visual Studio Find dialog, but not in Flex when tested on the same file!

By "not working" I mean that it doesn't find any matches.

\'((.)|(\\['"?\\abfnrtv])|(\\[0-7]{1,3})|(\\[Xx][0-9a-fA-F]+))\'


This regex is supposed to recognize any character literals, like 'a', '\t', '\012', or '\x01AF'.

Can anyone suggest why this regex is not finding any matches in Flex?

SOLVED: It turns out that I had other rules that were consuming the character literals earlier in the process. D'Oh! | :doh:



The difficult we do right away...
...the impossible takes slightly longer.


modified 6-Sep-12 16:11pm.

AnswerRe: C Code Parsing Pin
Peter_in_27805-Sep-12 17:45
memberPeter_in_27805-Sep-12 17:45 
GeneralRe: C Code Parsing Pin
Richard Andrew x646-Sep-12 11:09
memberRichard Andrew x646-Sep-12 11:09 
QuestionRename File Name Help Pin
toikken5-Aug-12 19:56
membertoikken5-Aug-12 19:56 
AnswerRe: Rename File Name Help Pin
Bernhard Hiller6-Aug-12 0:11
memberBernhard Hiller6-Aug-12 0:11 
GeneralRe: Rename File Name Help Pin
toikken6-Aug-12 16:05
membertoikken6-Aug-12 16:05 
GeneralRe: Rename File Name Help Pin
Bernhard Hiller6-Aug-12 21:24
memberBernhard Hiller6-Aug-12 21:24 
QuestionSwap two values based on pattern Pin
biop.codeproject2-Aug-12 18:19
memberbiop.codeproject2-Aug-12 18:19 
AnswerRe: Swap two values based on pattern Pin
Peter_in_27802-Aug-12 20:02
memberPeter_in_27802-Aug-12 20:02 
GeneralRe: Swap two values based on pattern Pin
biop.codeproject3-Aug-12 0:43
memberbiop.codeproject3-Aug-12 0:43 
GeneralRe: Swap two values based on pattern Pin
Peter_in_27803-Aug-12 1:08
memberPeter_in_27803-Aug-12 1:08 
GeneralRe: Swap two values based on pattern Pin
biop.codeproject5-Aug-12 17:09
memberbiop.codeproject5-Aug-12 17:09 
GeneralRe: Swap two values based on pattern Pin
biop.codeproject5-Aug-12 18:12
memberbiop.codeproject5-Aug-12 18:12 
GeneralRe: Swap two values based on pattern Pin
Peter_in_27805-Aug-12 18:59
memberPeter_in_27805-Aug-12 18:59 
QuestionRegEx Problem Pin
Kevin Marois19-Jun-12 13:12
memberKevin Marois19-Jun-12 13:12 
AnswerRe: RegEx Problem Pin
AspDotNetDev19-Jun-12 13:34
protectorAspDotNetDev19-Jun-12 13:34 
GeneralRe: RegEx Problem Pin
AspDotNetDev19-Jun-12 13:52
protectorAspDotNetDev19-Jun-12 13:52 
GeneralRe: RegEx Problem Pin
Kevin Marois19-Jun-12 14:02
memberKevin Marois19-Jun-12 14:02 
AnswerRe: RegEx Problem Pin
AspDotNetDev19-Jun-12 14:35
protectorAspDotNetDev19-Jun-12 14:35 
Questioncan someone tell me whats wrong with this expression? Pin
ChekGuy29-Apr-12 12:48
memberChekGuy29-Apr-12 12:48 
AnswerRe: can someone tell me whats wrong with this expression? Pin
egenis29-Apr-12 20:22
memberegenis29-Apr-12 20:22 
AnswerRe: can someone tell me whats wrong with this expression? Pin
Peter_in_278029-Apr-12 20:46
memberPeter_in_278029-Apr-12 20:46 
QuestionEither start or not a "d" Pin
Bernhard Hiller6-Mar-12 1:50
memberBernhard Hiller6-Mar-12 1:50 
AnswerRe: Either start or not a "d" Pin
Bernhard Hiller6-Mar-12 3:02
memberBernhard Hiller6-Mar-12 3:02 
QuestionTrying to match non-quoted sections Pin
PIEBALDconsult24-Jan-12 5:30
memberPIEBALDconsult24-Jan-12 5:30 
AnswerRe: Trying to match non-quoted sections Pin
Andreas Gieriet7-Apr-12 5:33
memberAndreas Gieriet7-Apr-12 5:33 
GeneralRe: Trying to match non-quoted sections Pin
PIEBALDconsult7-Apr-12 10:17
memberPIEBALDconsult7-Apr-12 10:17 
GeneralRe: Trying to match non-quoted sections Pin
Andreas Gieriet7-Apr-12 12:04
memberAndreas Gieriet7-Apr-12 12:04 
GeneralRe: Trying to match non-quoted sections Pin
PIEBALDconsult9-Apr-12 19:03
memberPIEBALDconsult9-Apr-12 19:03 
GeneralRe: Trying to match non-quoted sections Pin
Andreas Gieriet10-Apr-12 10:59
memberAndreas Gieriet10-Apr-12 10:59 
GeneralRe: Trying to match non-quoted sections Pin
PIEBALDconsult11-Apr-12 4:10
memberPIEBALDconsult11-Apr-12 4:10 
GeneralRe: Trying to match non-quoted sections Pin
Andreas Gieriet11-Apr-12 14:11
memberAndreas Gieriet11-Apr-12 14:11 
GeneralRe: Trying to match non-quoted sections Pin
PIEBALDconsult11-Apr-12 15:45
memberPIEBALDconsult11-Apr-12 15:45 
GeneralRe: Trying to match non-quoted sections Pin
Andreas Gieriet11-Apr-12 22:52
memberAndreas Gieriet11-Apr-12 22:52 
GeneralRe: Trying to match non-quoted sections Pin
Luc Pattyn7-Apr-12 10:43
mvpLuc Pattyn7-Apr-12 10:43 
GeneralRe: Trying to match non-quoted sections Pin
Andreas Gieriet7-Apr-12 11:39
memberAndreas Gieriet7-Apr-12 11:39 
QuestionSomething I just learned, with IP addresses Pin
Timothy CIAN20-Jan-12 7:42
memberTimothy CIAN20-Jan-12 7:42 

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.


Advertise | Privacy | Mobile
Web01 | 2.8.170117.1 | Last Updated 26 May 2016
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid