Click here to Skip to main content
15,921,113 members
Home / Discussions / C#
   

C#

 
Questiontotally disconnect TcpClient Pin
tourji30-Aug-05 10:05
tourji30-Aug-05 10:05 
AnswerRe: totally disconnect TcpClient Pin
if_mel_yes_else_no30-Aug-05 10:11
if_mel_yes_else_no30-Aug-05 10:11 
AnswerRe: totally disconnect TcpClient Pin
mav.northwind31-Aug-05 23:18
mav.northwind31-Aug-05 23:18 
QuestionText Encoding Pin
Guinness4Strength30-Aug-05 9:25
Guinness4Strength30-Aug-05 9:25 
AnswerRe: Text Encoding Pin
if_mel_yes_else_no30-Aug-05 9:40
if_mel_yes_else_no30-Aug-05 9:40 
GeneralRe: Text Encoding Pin
Guinness4Strength30-Aug-05 9:51
Guinness4Strength30-Aug-05 9:51 
Questionregex Pin
surfman1930-Aug-05 9:04
surfman1930-Aug-05 9:04 
AnswerRe: regex Pin
Guffa30-Aug-05 9:16
Guffa30-Aug-05 9:16 
Your regular expression is equivalent to:

"[(),0456789][0-9]+?"
or
"[(),0456789]\d+?"

Use {6,9} to detect 6 to 9 occurances.

The Match method only checks if a match can be found inside the string. that means that the string "some text 0664123123 more text" will still be valit. If you want to match the entire string, you have to include the start of the string (^) and the end of the string ($).

This should be closer to what you want:

"^06(76|64)\d{6,9}$"

---
b { font-weight: normal; }

General[Message Deleted] Pin
surfman1930-Aug-05 9:24
surfman1930-Aug-05 9:24 
GeneralRe: regex Pin
surfman1930-Aug-05 9:28
surfman1930-Aug-05 9:28 
GeneralRe: regex Pin
User 665830-Aug-05 10:18
User 665830-Aug-05 10:18 
GeneralRe: regex Pin
Susan Hernandez31-Aug-05 15:31
Susan Hernandez31-Aug-05 15:31 
Questionforeach DataSet Pin
samoore30-Aug-05 6:19
samoore30-Aug-05 6:19 
QuestionRe: foreach DataSet Pin
Guffa30-Aug-05 8:29
Guffa30-Aug-05 8:29 
AnswerRe: foreach DataSet Pin
samoore30-Aug-05 9:31
samoore30-Aug-05 9:31 
QuestionCustom Sinks Pin
esjq30-Aug-05 5:58
esjq30-Aug-05 5:58 
AnswerRe: Custom Sinks Pin
esjq30-Aug-05 21:37
esjq30-Aug-05 21:37 
QuestionTransparency not just in forms Pin
if_mel_yes_else_no30-Aug-05 5:57
if_mel_yes_else_no30-Aug-05 5:57 
QuestionInstalling application using C# Pin
Samar Aarkotti30-Aug-05 5:53
Samar Aarkotti30-Aug-05 5:53 
AnswerRe: Installing application using C# Pin
Guinness4Strength30-Aug-05 9:31
Guinness4Strength30-Aug-05 9:31 
GeneralRe: Installing application using C# Pin
Anonymous30-Aug-05 12:19
Anonymous30-Aug-05 12:19 
GeneralRe: Installing application using C# Pin
Guinness4Strength31-Aug-05 3:54
Guinness4Strength31-Aug-05 3:54 
QuestionQuestion about Mutex Pin
Alex Cutovoi30-Aug-05 5:17
Alex Cutovoi30-Aug-05 5:17 
AnswerRe: Question about Mutex Pin
Andy Brummer30-Aug-05 8:15
sitebuilderAndy Brummer30-Aug-05 8:15 
GeneralRe: Question about Mutex Pin
Alex Cutovoi30-Aug-05 9:25
Alex Cutovoi30-Aug-05 9:25 

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.