Case-Insensitive Regex to Text

Converts a case-insensitive regex string to a case sensitive regex string (no guarantee on it being the proper original casing) in case the i flag wasn't available at the time but now is, or you need it to be case-sensitive again.

Input: TextResult: Text

Text input

Examples

Read literal spelling from [hH][tT][tT][pP]

Read literal spelling from [hH][tT][tT][pP]. The input is a small public learning fixture; it contains no private production data.

Input

[hH][tT][tT][pP]

Expected answer

http
Read literal spelling from [aA][pP][iI]

Read literal spelling from [aA][pP][iI]. The input is a small public learning fixture; it contains no private production data.

Input

[aA][pP][iI]

Expected answer

api
Read literal spelling from [jJ][sS][oO][nN]

Read literal spelling from [jJ][sS][oO][nN]. The input is a small public learning fixture; it contains no private production data.

Input

[jJ][sS][oO][nN]

Expected answer

json
Read literal spelling from [aA]_[zZ]

Read literal spelling from [aA]_[zZ]. The input is a small public learning fixture; it contains no private production data.

Input

[aA]_[zZ]

Expected answer

a_z
Read literal spelling from [aB][xX]

Read literal spelling from [aB][xX]. The input is a small public learning fixture; it contains no private production data.

Input

[aB][xX]

Expected answer

[aB]x
simple test

Input

[sS]0[mM][eE][tT][hH]![nN][Gg] [wr][On][g]?

Expected answer

s0meth!nG [wr][On][g]?

e.g. [mM][oO][zZ][iI][lL][lL][aA]/[0-9].[0-9] .* becomes Mozilla/[0-9].[0-9] .*

Format reference: From Case Insensitive Regex background and specification

Related tools

Browse utils tools