Skip to content

Instantly share code, notes, and snippets.

View pabloprogramador's full-sized avatar
🏠
Working from home

Pablo Erick pabloprogramador

🏠
Working from home
View GitHub Profile
<?php die('This file is not really here!');
/**
* ------------- DO NOT UPLOAD THIS FILE TO LIVE SERVER ---------------------
*
* Implements code completion for CodeIgniter in phpStorm
* phpStorm indexes all class constructs, so if this file is in the project it will be loaded.
* -------------------------------------------------------------------
* Drop the following file into a CI project in phpStorm
* You can put it in the project root and phpStorm will load it.
<?php
# Conteúdo a ser examinado
$string = 'abcedf';
# Ocorrências
preg_match('/[0-9]]/', $string); // Pode conter números de 0 à 9
preg_match('/[4-8]]/', $string); // Pode conter números de 4 à 8
preg_match('/[A-Z]]/', $string); // Pode conter letras de A à Z maiusculas
preg_match('/[a-z]/', $string); // Pode conter letras de A à Z minusculas
preg_match('/[F-P]]/', $string); // Pode conter letras de F à P maiusculas