Creato da pastuweb.com
Share My Page
My Social Accounts
Account FaceBook Account LinkedIn Account Twitter Account Google Plus Account Git Hub

Per il Web:

ipaddresscomp = [0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]

porta = [1-9][0-9]{0,3}

ipaddress = ({ipaddresscomp}.|{3}{}ipaddresscomp}

escape = %[0-9]A-F][0-9A-F]

nome = ([^\n\r%/<>:.\\#]|{escape})+

primolivello = it | com | gov | edu | net | uk | fr | de

dominio = {nome}.{nome}(.{nome})*.{primolivello}

schema = http | ftp | https | file

url = {schema}"://"({dominio}|{ipaddress})(":"{porta})?("/"{nome})*("/" | ("/"{nome}"."{nome}("#"{nome})?))?

Per il linguaggio C:

direttiva = "#" (include | define).*{nl}

stringa = \" ([^\n\r\"]+|\\\")*\"

identificatore = [A-Za-z_][A-Z-a-z0-9_]*

integer = ([1-9][0-9]*|0)

double = (([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+))(e|E('+'|'-')?[0-9]+)?

Generici:

autorelibro = \"[a-Z-a-z0-9]+\"

isbn = [0-9]{2}-[0-9*{2}-[0-9A-Fa-f]{5}-[A-Za-z0-9]

date = {day} \/ {mese} \/ {anno}

mese = 0[1-9] | 1[0-2]

day = 0[1-9] | [1-2][0-9] | 3[0-1]

anno = [0-9]{4}

iban = [a-zA-Z]{2}[0-9]{2}[a-zA-Z0-9]{4}[0-9]{7}([a-zA-Z0-9]?){0,16}

email = [a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}

esadecimale = 0[xX][0-9a-fA-F]+

valuta_euro = € /[0-9]+\[0-9]{1,3}(.[0-9]{3})*)(\,[0-9]{1,2})?

ora_24_ore = (([0-1]?[0-9]) | ([2][0-3])) : ([0-5]?[0-9])(:([0-5]?[0-9]))?

ora_12_ore = ([1-9] | 1[0-2]|0[1-9]){1}(:[0-5][0-9][aApP][mM]){1}

path_assoluto = (([a-zA-Z):)|(\\{2}\w+)\$)(\\(\w[\w]*.*))+

url_http = http\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?

cap = \d{5}

codice_fiscale = [a-zA-Z]{6}\d\d[a-zA-Z]\d\d[a-zA-Z]\d\d\d[a-zA-Z]

targa_auto = ([a-zA-Z]{2}*\d{6}|[a-zA-Z]{2} *\d{3} *[a-zA-Z]{2})

pari  = [02468]

dispari = [13579]

indirizzo_mac = ({esadecimale}\-){5}{esadecimale}

numero_pari = {pari} | [1-9][0-9]*{pari}

numero_dispari = {dispari} | [1-9][0-9]*{dispari}

Pagine HTML:

elemento_html_no_attributi = <([a-zA-Z][a-zA-Z0-9]*)\b[^>]*>(.*)?</(a-zA-Z][a-zA-Z0-9]*)\b>

commenti_html = <!-- [\s\S]*?--[ \t\n\r]*>

link_html = <a +href * = *("|')?[a-zA-Z0-9-_%\.]+("|'=? *>.*</a *>

color_html = #?([a-f]|[A-F]|[0-9]){3}(([a-f]|[A-F]|[0-9]){3})?

Come riconoscere dei range di numeri:

range_0_a_1000_pari = {pari} | [1-9]{pari} |[1-9][0-9]{pari}|1000

range_0_a_1000_dispari = {dispari} | [1-9]{dispari} | [1-9][0-9]{dispari]}

range_meno_44_a_piu_128_pari = ("-" ((4[024]9 | ((3|2|1){pari}) | ({pari}))) | (({pari})|[1-9]{pari})|(1|[012]{pari}))

 

Average (1 Vote)
The average rating is 5.0 stars out of 5.