Regex stumper

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

I can't reply.....I'm on vacation.

Naw...gotta say it....WAY TO GO MILONGUERO!
User avatar
webmasta
Posts: 169
Joined: Mon Jul 28, 2003 8:16 pm
Location: Toronto

Post by webmasta »

But hang on here... now I back tracking the thread based on Bob's bright red banner... it came to light that Keith hijacked the code ...your a pirate.. walk da plank :P

When I saw it this morning I was so puffy eyed I didnt realise what I was seeing with all those slashes and though Keith rewrote a new regex..

Milonguero, Your're da MAN.. I feel like a royal a**hole. :oops:

Thnx a million dude... Im now actually putting ure regex into a perl script.

PS: Seems like someone took their computer on vacation too.
Milonguero
Posts: 3
Joined: Tue Sep 16, 2003 7:08 am

Post by Milonguero »

Thankyou guys -I'm turning pink all over :D
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Post by jeffy »

Aw jeeese, this is just too good to pass up.

http://www.jeffyjeffy.com/code/textpad/ ... pq_strings

:' )
User avatar
webmasta
Posts: 169
Joined: Mon Jul 28, 2003 8:16 pm
Location: Toronto

Post by webmasta »

Hehe we all made it over to Jeffy's place..

And in Perl

Code: Select all

   while ($text =~ /\s*(([^"][^\s"]*)|("[^"]*"))/g) {
   print $1 ."\n";
        }
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Hehe we all made it over to Jeffy's place..
Yeah, but at least reference to you is spelled correctly. :cry:

I can live with the misspelling, but my Dad better not see it!..... :D
User avatar
webmasta
Posts: 169
Joined: Mon Jul 28, 2003 8:16 pm
Location: Toronto

Post by webmasta »

LMAO ... slay the frog for his croak!!
Post Reply