> -----Original Message-----
> From: Lee Goddard [mailto:[EMAIL PROTECTED]]
> Sent: 07 June 2001 11:14
> To: Perl_Users
> Subject: Regex Question: splitting at a point unless part of a quoted
> substring

> I need to split a string at all full-stops '.' 
> unless they are part of a sub-string within quotes.

> Should I manually loop over the file, setting flags,
> or can I do this with a regular expression?

If it is safe to assume all quotes are safe to use i.e. not escaped somehow
then a regex will suffice or perhaps the use of the balanced text module (I
forget the name, prolly Text::Balanced).

Michael Erskine (MSEmtd)
mailto:[EMAIL PROTECTED]
<JAPH>

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to