@@ -592,6 +592,18 @@ SELECT md5( name ) = md5( name::text ) AS t FROM srt;
592
592
SELECT quote_ident( name ) = quote_ident( name::text ) AS t FROM srt;
593
593
SELECT quote_literal( name ) = quote_literal( name::text ) AS t FROM srt;
594
594
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
+
595
607
SELECT regexp_matches(' foobarbequebaz' ::citext, ' (bar)(beque)' ) = ARRAY[ ' bar' , ' beque' ] AS t;
596
608
SELECT regexp_matches(' foobarbequebaz' ::citext, ' (BAR)(BEQUE)' ) = ARRAY[ ' bar' , ' beque' ] AS t;
597
609
SELECT regexp_matches(' foobarbequebaz' ::citext, ' (BAR)(BEQUE)' ::citext) = ARRAY[ ' bar' , ' beque' ] AS t;
0 commit comments