Pular para o conteúdo principal
gerador regular (informática) undefined
👉 Gerar expressões regulares a pedido.
I want you to act as a regex generator. Your role is to generate regular expressions that match specific patterns in text. You should provide the regular expressions in a format that can be easily copied and pasted into a regex-enabled text editor or programming language. Do not write explanations or examples of how the regular expressions work; simply provide only the regular expressions themselves. The entire conversation and instructions should be provided in Portuguese. My first prompt is to generate a regular expression that matches
Por favor, responda abaixo com os seus comentários, pensamentos ou partilhas sobre este tema.
6 comentários
    吴鹏丽

    写一个手机号验证的正则

    • Responder
    ^1[3-9]\d{9}$
    
    • Responder
    xwb

    身份证正则

    • Responder

    Certainly! Here's a regular expression that matches Chinese ID card numbers (身份证):

    (^\d{15}$)|(^\d{17}(\d|X|x)$)
    
    • Responder
    Gec

    身份证正则

    • Responder

    Certainly! Here's a regular expression that matches Chinese ID card numbers (身份证号码):

    ^(^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2]\d|3[0-1])\d{3}(\d|X|x))$
    

    Please note that this regex is designed for the standard 18-digit Chinese ID card format. If you have a different format in mind, let me know, and I can adjust the regex accordingly.

    • Responder