Click here to Skip to main content
15,117,882 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
AnswerRe: Matching a string. Pin
PIEBALDconsult19-Aug-13 6:03
professionalPIEBALDconsult19-Aug-13 6:03 
GeneralRe: Matching a string. Pin
Septimus Hedgehog19-Aug-13 6:27
MemberSeptimus Hedgehog19-Aug-13 6:27 
GeneralRe: Matching a string. Pin
PIEBALDconsult19-Aug-13 6:31
professionalPIEBALDconsult19-Aug-13 6:31 
GeneralRe: Matching a string. Pin
Septimus Hedgehog19-Aug-13 6:44
MemberSeptimus Hedgehog19-Aug-13 6:44 
GeneralRe: Matching a string. Pin
PIEBALDconsult19-Aug-13 10:01
professionalPIEBALDconsult19-Aug-13 10:01 
GeneralRe: Matching a string. Pin
Septimus Hedgehog20-Aug-13 0:04
MemberSeptimus Hedgehog20-Aug-13 0:04 
QuestionHelp wanted with regex format. Pin
Septimus Hedgehog31-Jul-13 4:17
MemberSeptimus Hedgehog31-Jul-13 4:17 
AnswerRe: Help wanted with regex format. Pin
Richard Deeming31-Jul-13 4:47
mveRichard Deeming31-Jul-13 4:47 
The % character won't work with the \b anchor. From MSDN:

The \b anchor specifies that the match must occur on a boundary between a word character (the \w language element) and a non-word character (the \W language element). Word characters consist of alphanumeric characters and underscores; a non-word character is any character that is not alphanumeric or an underscore. The match may also occur on a word boundary at the beginning or end of the string.

If you're using .NET, you could try something like:
regexp
((?<=\W)|^)%\s+\bcomplete\b




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Help wanted with regex format. Pin
Septimus Hedgehog31-Jul-13 4:53
MemberSeptimus Hedgehog31-Jul-13 4:53 
AnswerRe: Help wanted with regex format. Pin
OriginalGriff31-Jul-13 5:10
mveOriginalGriff31-Jul-13 5:10 
GeneralRe: Help wanted with regex format. Pin
Septimus Hedgehog31-Jul-13 5:34
MemberSeptimus Hedgehog31-Jul-13 5:34 
GeneralRe: Help wanted with regex format. Pin
OriginalGriff31-Jul-13 5:40
mveOriginalGriff31-Jul-13 5:40 
GeneralRe: Help wanted with regex format. Pin
Septimus Hedgehog31-Jul-13 6:15
MemberSeptimus Hedgehog31-Jul-13 6:15 
GeneralRe: Help wanted with regex format. Pin
Bernhard Hiller31-Jul-13 23:26
MemberBernhard Hiller31-Jul-13 23:26 
GeneralRe: Help wanted with regex format. Pin
Septimus Hedgehog1-Aug-13 0:58
MemberSeptimus Hedgehog1-Aug-13 0:58 
GeneralRe: Help wanted with regex format. Pin
Bernhard Hiller1-Aug-13 21:39
MemberBernhard Hiller1-Aug-13 21:39 
GeneralRe: Help wanted with regex format. Pin
Septimus Hedgehog1-Aug-13 23:16
MemberSeptimus Hedgehog1-Aug-13 23:16 
GeneralRe: Help wanted with regex format. Pin
ExcellentOrg6-Aug-13 20:07
MemberExcellentOrg6-Aug-13 20:07 
GeneralRe: Help wanted with regex format. Pin
OriginalGriff31-Jul-13 5:41
mveOriginalGriff31-Jul-13 5:41 
GeneralRe: Help wanted with regex format. Pin
Septimus Hedgehog31-Jul-13 6:18
MemberSeptimus Hedgehog31-Jul-13 6:18 
GeneralRe: Help wanted with regex format. Pin
Septimus Hedgehog31-Jul-13 21:17
MemberSeptimus Hedgehog31-Jul-13 21:17 
QuestionRegular Expression to allow combination of character with digits only Pin
pal8913-Feb-13 18:58
Memberpal8913-Feb-13 18:58 
AnswerRe: Regular Expression to allow combination of character with digits only Pin
Sandeep Mewara13-Feb-13 19:55
mvaSandeep Mewara13-Feb-13 19:55 
AnswerRe: Regular Expression to allow combination of character with digits only Pin
T Chandra Prakash28-Feb-13 20:08
MemberT Chandra Prakash28-Feb-13 20:08 
AnswerRe: Regular Expression to allow combination of character with digits only Pin
OriginalGriff28-Feb-13 22:39
mveOriginalGriff28-Feb-13 22:39 

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.