am trying to build a regex code to allow such texts
iGuKiscdvMrrSCaKGdmePT5ASu6gRJBHoB
iPokbyeGPuF46B27dAY3fRZAkKdDh8WbNr
iJhZPxQp7fWQCBvmyTFLAFs9Q8kWWEJHfi
iKs7Kv9gaLCoJVXvnPkqf4peXFqZrCG1G4
iJRXgmaiwQ5r6NnxDcFgT2yBpjtWB1y5vM
starts with letter i and contain numbers and letters a-z A-z with no special characters
what is the correct regex
>Solution :
Looks like you’re looking for the regex
^i[A-za-z0-9]+$
Where the ^
means that the line is starting, the i
is literal, [A-za-z0-9]+
includes at least one upper and lowercase alphanumeric character(s), and the $
means that the line is ending.
You can learn more about this and test the regex easily at https://regex101.com/r/7Mzxt2/1