User Profile

Collapse

Profile Sidebar

Collapse
mehdiab
mehdiab
Last Activity: Aug 14 '13, 05:03 PM
Joined: Jun 2 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mehdiab
    started a topic Problem with Regex

    Problem with Regex

    hi,
    how can i match input string as the below :

    Input :
    number-number,number-number,...,numb er-number
    e.g :
    123-456677,24114-7809,345555-900007 (matches)
    123-456677,-7809,345555-900007 (NOT matches)

    i write the pattern
    Code:
    @"(\d+-\d+,?)+"
    but i do not know where is the problem . and i want to know what inputs matches with my pattern .
    Thanks alot
    See more | Go to post

  • mehdiab
    started a topic How to free virtual memory ?
    in .NET

    How to free virtual memory ?

    I have a crawler application (with C#) that downloads pages from web . The application take more virtual memory , even i dispose every object and even use
    Code:
    GC.Collect()
    .

    This , have 10 thread and each thread has a socket that downloads pages . In each thread , i have a
    Code:
    byte[] buffer
    that store content of page , and have an
    Code:
    string str_content
    that i store in it , content of page in string . I have a Sytem.Timer that every 3 second chech...
    See more | Go to post
No activity results to display
Show More
Working...