POV-Ray : Newsgroups : povray.off-topic : An even more interesting problem : Re: An even more interesting problem Server Time
28 Jul 2024 18:26:16 EDT (-0400)
  Re: An even more interesting problem  
From: Tim Cook
Date: 25 May 2013 04:55:01
Message: <51a07c65@news.povray.org>
On 2013-05-24 13:20, Orchid Win7 v1 wrote:
> Suppose I give you two arbitrary regular expressions. Are they equivalent?
>
> Does there exist an algorithm to determine whether two regexes are
> equivalent?

Piece of cake:

if( string RegExp1 == string RegExp2 ){
	printf( "They're equivalent!\n" );
}else{
	printf( "They're not identically equivalent!\n" );
}

*wink*


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.