@@ -592,6 +592,18 @@ SELECT md5( name ) = md5( name::text ) AS t FROM srt;
592592SELECT quote_ident( name ) = quote_ident( name::text ) AS t FROM srt;
593593SELECT quote_literal( name ) = quote_literal( name::text ) AS t FROM srt;
594594
595+ SELECT regexp_match(' foobarbequebaz' ::citext, ' (bar)(beque)' ) = ARRAY[ ' bar' , ' beque' ] AS t;
596+ SELECT regexp_match(' foobarbequebaz' ::citext, ' (BAR)(BEQUE)' ) = ARRAY[ ' bar' , ' beque' ] AS t;
597+ SELECT regexp_match(' foobarbequebaz' ::citext, ' (BAR)(BEQUE)' ::citext) = ARRAY[ ' bar' , ' beque' ] AS t;
598+ SELECT regexp_match(' foobarbequebaz' ::citext, ' (BAR)(BEQUE)' ::citext, ' ' ) = ARRAY[ ' bar' , ' beque' ] AS t;
599+ SELECT regexp_match(' foobarbequebaz' ::citext, ' (BAR)(BEQUE)' , ' ' ) = ARRAY[ ' bar' , ' beque' ] AS t;
600+ SELECT regexp_match(' foobarbequebaz' , ' (BAR)(BEQUE)' ::citext, ' ' ) = ARRAY[ ' bar' , ' beque' ] AS t;
601+ SELECT regexp_match(' foobarbequebaz' ::citext, ' (BAR)(BEQUE)' ::citext, ' ' ::citext) = ARRAY[ ' bar' , ' beque' ] AS t;
602+ -- c forces case-sensitive
603+ SELECT regexp_match(' foobarbequebaz' ::citext, ' (BAR)(BEQUE)' ::citext, ' c' ::citext) = ARRAY[ ' bar' , ' beque' ] AS " no result" ;
604+ -- g is not allowed
605+ SELECT regexp_match(' foobarbequebazmorebarbequetoo' ::citext, ' (BAR)(BEQUE)' ::citext, ' g' ) AS " error" ;
606+
595607SELECT regexp_matches(' foobarbequebaz' ::citext, ' (bar)(beque)' ) = ARRAY[ ' bar' , ' beque' ] AS t;
596608SELECT regexp_matches(' foobarbequebaz' ::citext, ' (BAR)(BEQUE)' ) = ARRAY[ ' bar' , ' beque' ] AS t;
597609SELECT regexp_matches(' foobarbequebaz' ::citext, ' (BAR)(BEQUE)' ::citext) = ARRAY[ ' bar' , ' beque' ] AS t;
0 commit comments