regex

  1. Innww

    Resolved RegEx of .txt converted from PDF (to txt)

    I am in a situation where I have to convert a PDF to a format that can be set to a DataGridView. The only Resolution I can come up with is using Itextsharp and converting the PDF to a textfile for the most part the format is kept. here is the Code to parse the text. Dim mPDF As String =...
  2. S

    .NET Regular Expression Regex Query

    Hi there, I need some assistance with a regex pattern. What I am trying to do is filter files based on a regex expression What the expression needs to do is find files that do not start with [f-z]\d{5} but do end in \.(dat|set) I did try [^[f-z]\d{5}]\.(dat|set) but unfortunately it did not...
  3. Z

    Question Removing invalid links from all files inside a folder

    I want to create a tool which will remove invalid links from all say *.txt files inside a directory. Sample file: <sec id="sec1"> <p>"You fig. 23 did?" I <a href rid="sec12">section 12</a> asked, surprised.</p> <p>"Cross sent it table 9 to me a few weeks ago." Stanton crossed over to my mother...
  4. jessethebuilder

    Question Struggles with Regular Expressions

    I am writing an object to deal with state names. Sometimes I get the 2 letter abbreviation, and sometimes I get the full name. So I am trying to write an object that lets me deal with either. But I have a RegEx problem that I have been on for too long, and I'm stumped. Imports System.Text...
  5. P

    How Can I Extract Doman Names Like This But Only With Related Links ?

    How to make regex match code for vb.net to extract domain names but only with related links like this and get output as i type in searchbox. Example: I type vb.net for begginers and i want to extract it only related vb forums,sites with these doman names. How can i do that ? Here is the...
  6. J

    Answered selecting text in richtextbox which is underlined

    So how do we do it? Text is like - hello vb dotnet forums !! you guys are the best coderz On a button click i want to first select "vb dotnet forums" and on next click immediately select "are the best" (in a richtextbox control) . Iam not getting any idea as to how to proceed. Any help would...
  7. C

    Question need a REGEX pattern to match

    need help with validating a 9-digit number. CANNOT BE ----------- 000000000 111111111 222222222 333333333 444444444 555555555 666666666 777777777 888888888 999999999 4-5 position(s) CANNOT BE 00 -- 123001234 6-9 position(s) CANNOT BE 00 -- 234550000 The nine numbers CANNOT BE sequential -- but...
  8. thugster69

    How can I split a string with qoutes, doubleqoutes and other metacharacters in REGEX?

    Hey guys, For two days, already, I've been bugged by my problem. I'm trying to split a string of text i.e.( "Lakeside".) and store it like this: myArray(0) = " myArray(1) = L myArray(2) = a myArray(3) = k myArray(4) = e myArray(5) = s myArray(0) = i myArray(0) = d myArray(0) = e myArray(0) = "...
  9. J

    Question how to double-spin text content in richtextbox ?

    i want to implement this feature : if i have a following sentence : {my name is james vick and iam a {member|user|visitor} on this {forum|website|site} and iam loving it | iam admin and iam a {supervisor|admin|moderator} on this {forum|website|site} and iam loving it} on a click of button i...
  10. D

    Regex for case insensitive registry search

    Hi, I've recently learnt that Regex class maybe used to develop case insensitive searches. I have a registry search program that will return only the exact matches from the registry. I need to make it case insensitive. Can you guide me how to do that using regular expressions in vb.net 2005. Im...
Top Bottom