Wrox Programmer Forums
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 4th, 2004, 10:14 PM
Registered User
Join Date: Jan 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default RegExp Pattern Guru Plz :)

I'm having one hell of a time with this and I'd love if someone can give me a hand....

An Example of the Submitted String is
 Villain Ricki Amber            -  Woodland Lord  of Nity's Harem 
Now the details, Not sure if you know, but the above is a single line of ANSI Escaped text...

There can be any number of Escape code Sequences which start with a Chr$(27) and End with a lowercase "m"
Inbetween there can be any number of Characters, but mostly Semicolon's and Numbers, few Capital letters thrown in sometimes but it ALWAYS ends in a lowercase m.

Those I want to disregard.

Where the word Villan is, that can be a couple of things, or could be nothing, I want to capture it no matter what it is.

The Ricki Amber is a First / Lastname, I want to capture both Seperatly. There will only ever be a single space between the two names, nothing else between.

Next The "Woodland Lord" Title I want to capture also.

Lastly, The "of Nity's Harem" I only want to capture the "Nity's Harem" portion.

The whole statement ends with a vbcrlf

I've been workin on it, but i keep losing myself, here's all I ended up with:


Any help with this would be greatly appreciated...

Similar Threads
Thread Thread Starter Forum Replies Last Post
DirectoryInfo.GetFiles(pattern): search pattern fo arif_1947 VS.NET 2002/2003 1 October 19th, 2004 11:59 PM
beginner needs guru - hit counter question badgolfer Classic ASP Basics 1 November 20th, 2003 09:51 AM
SQL syntax for my query - guru needed badgolfer Access 2 September 20th, 2003 01:52 PM
Hey, JavaScript guru lcsgeek Classic ASP Databases 2 September 11th, 2003 08:35 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.