>> 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*
Oh come on. You could at least parse the string into an AST and compare
the two ASTs. :-P That would at least remove trivial differences like
extra spaces and so on.
Post a reply to this message
|