Results 1 to 2 of 2

Thread: regular expressions, someone help me

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    regular expressions, someone help me

    well I'm asking someone to do this for me, because I dont really understand reg expressions and I dont have the time to learn them (I'm too dumb at the moment )

    I just dont know what this pattern would be for a RegEx object:

    "***" + some text + "BOO" + some other text here

    anyone can help?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    You dont need that " in your text, do you?
    Are you looking for a pattern that match for example this?

    ***this is a BOO, isn't it?

    ^(\*{3}).*BOO{1}.*

    It matches 3 * at the begining, then any set of characters except newline charachter ZERO or more times, then BOO 1 time and again any set of characters except new line ZERO or more times. If you want it to be ONE or more time replace * with +. You can choose if it is case sensitive or not in your IsMatch statment.
    Last edited by Lunatic3; Oct 12th, 2003 at 10:25 PM.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width