Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Android Contacts – Remove Non Numbers From Phone

Posted on February 21, 2014October 26, 2015 By David Kittell
UPDATE data
SET data1 = REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(data1, '.', ''), '+', ''), ' ', ''), ')', ''), '-', ''), '(', '')
WHERE mimetype_id IN (
		SELECT _id
		FROM mimetypes
		WHERE mimetype LIKE "%phone%"
		)
	AND (
		data1 LIKE '%+%'
		OR data1 LIKE '%.%'
		OR data1 LIKE '%-%'
		OR data1 LIKE '% %'
		OR data1 LIKE '%(%'
		OR data1 LIKE '%)%'
		);
Originally Posted on February 21, 2014
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Android SQLite Code SQL SQLite

Post navigation

Previous post
Next post

Related Posts

Mac OSX Terminal – Create Desktop Shortcuts/Symlink

Posted on May 26, 2016May 26, 2016

Coming from Windows I sometimes still have the desire or need for a desktop shortcut/symlink. There are two easy options for this Right click the application, select “Make Alias” and drag that alias to the desktop and potentially rename it at one point or the other. Open Terminal (Applications –…

Read More

IP & Hostname

Posted on August 15, 2013October 30, 2015

echo $_SERVER[’REMOTE_ADDR’] . " – " . gethostbyaddr($_SERVER[’REMOTE_ADDR’]); Originally Posted on August 15, 2013Last Updated on October 30, 2015 All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it…

Read More

UNIX Bash – Get Latest File Name Based On DateTime

Posted on July 7, 2016

Working on a backup and restore script I often need only to know what the latest backup/archive file is, this command helps you learn that. ls -ltr | tail -1 |cut -d’ ‘ -f10 All information on this site is shared with the intention to help. Before any source code…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes