Data Validation

corliss at alaskapm.org corliss at alaskapm.org
Thu Jan 27 16:29:50 CST 2000


On Thu, 27 Jan 2000, Michael Fowler wrote:

> Regexen to get the unquoted part out of a quoted string.  Backwacking the
> quote character, and backwacking the backwack are dealt with:
> 
> single-quoted string: '((?:\\\\|\\'|[^\\']+)*)'
> double-quoted string: "((?:\\\\|\\"|[^\\"]+)*)"
> 
> It'd be nice if I could combine them, using \1, but as far as I
> can tell, \1 can't be used in a character class, and that negated character
> class is a must.

:-)  That's a good one.  I could see some good uses for that one. . .

	--Arthur Corliss
	  Perl Monger/Alaska Perl Mongers
	  http://www.alaskapm.org/

=================================================
Mailing list info:  If at any time you wish to (un|re)subscribe to
the list send the request to majordomo at hfb.pm.org.  All requests
should be in the body, and look like such
                  subscribe anchorage-pm-list
                  unsubscribe anchorage-pm-list



More information about the Anchorage-pm mailing list