http(s)?:\/\/([a-z-A-Z-0-9]+(\.))+([a-z-A-Z]+)(\/[a-z-A-Z-0-9]*)*(\?((\&)?(.)+=(.)+)*)?
The regex above can be tested here
| BEGIN | |
| FOR c IN (SELECT table_name from user_tables) | |
| LOOP | |
| EXECUTE IMMEDIATE ('DROP TABLE ' || c.table_name || ' | |
| cascade constraints PURGE'); | |
| END LOOP; | |
| END; |
http(s)?:\/\/([a-z-A-Z-0-9]+(\.))+([a-z-A-Z]+)(\/[a-z-A-Z-0-9]*)*(\?((\&)?(.)+=(.)+)*)?
The regex above can be tested here
| from random import shuffle | |
| from functools import reduce | |
| n = int(input()) | |
| a = [ 1 for x in range(0,n-1)] | |
| a.append(2) | |
| shuffle(a) | |
| if(n == 3): | |
| print('Heavier ball found in iteration 0') | |
| import os | |
| from telegram.ext import Updater, CommandHandler | |
| from telegram import Bot | |
| import telegram | |
| from scrapy.exceptions import CloseSpider | |
| from dotenv import load_dotenv | |
| load_dotenv(".env") |
| let helloWorld = "Hello world!" | |
| // Tentando atribuir um novo valor: | |
| helloWorld = "Novo valor" | |
| /* | |
| * Irá resultar em um erro: | |
| * "Cannot assign to value: 'helloWorld' is a 'let' constant" | |
| */ |
| // Declarações únicas | |
| var x = 0 | |
| var valido = true | |
| var meuTexto = "Este é um texto" | |
| // Declarações múltiplas | |
| var x = 0, y = 10, z = 100 | |
| var string1 = "Primeira string", string2 = "Segunda string" |
| let meuTexto: String = "Este é um texto" | |
| let contador: Int = 0 | |
| let medida: Float = 2.5 | |
| let valor: Double = 10.0 | |
| let hoje: Date = Date() |
| // Valor "nil" explícito | |
| var meuTexto: String? = nil | |
| // Valor "nil" implícito | |
| var meuTexto: String? |
| // Com tipo definido: | |
| var meuTexto: String = "Esse é um texto" | |
| // Sem tipo definido | |
| var meuTexto = "Esse é um texto" |