Skip to content

Instantly share code, notes, and snippets.

View stephaneIBANEZ's full-sized avatar

Stéphane IBANEZ stephaneIBANEZ

  • AEZAN
  • Paris
View GitHub Profile
@stephaneIBANEZ
stephaneIBANEZ / string_cleanup.js
Created February 27, 2017 09:02
javascript input string cleanup only ALPHA
/*
* This file is part of the Inserm Radico package.
*
* @author Stéphane IBANEZ <stephane.ibanez@aezan.com>
*
* This class is used for cleaning input strings
* 1 - ' is replace by a sapce
* 2 - All non alpha characters are removed
* 3 - "-" is replaced by a space
*/
@stephaneIBANEZ
stephaneIBANEZ / Grep.php
Created February 23, 2017 10:44
String transformations
<?php
namespace Inserm_RadicoBundle\Entity;
class Grep {
protected $_code = null;
protected $_itemNumber = 0;
protected $_replaceList = array();
protected $_search = array();
@stephaneIBANEZ
stephaneIBANEZ / Sentence.php
Last active November 6, 2017 11:50
Class Sentence: string manipulation
<?php
/*
* This file is part of the Inserm Radico package.
*
* @author Stéphane IBANEZ <stephane.ibanez@aezan.com>
*
* This class is used for manipulate strings and new methods will be added further.
*
* To use this class outof Symfony environment, delete the line namespace InsermRadicoBundle\Entity;