Vim, Cygwin, MySQL & Zsh Tips by zzapper

  • Home
  • About
  • Technical tips
  • Make Money with Wonderful Squidoo

Archive

Posts Tagged ‘perl’

Perl: Regexp to filter out/match just the price/floating point number ie digits and dots

April 15th, 2010 No comments

There are two ways:-

$price=~tr/0-9.//cd; # delete anything but 0-9 and a real dot

$row_array[6]=~s/[^0-9.]//g; # clean up price, remove pound/dollar sign etc

Categories: Uncategorized Tags: perl, price, regex, regexp
RSS

Blogroll

  • 101 Success and Self-Development Tips
  • Just How do you Create More Ideas?
  • Number 1 Aloe Vera Blog
  • Passive Income Streams
  • Success Diary
  • Toy Toys for Xmas
  • Zulu Principle

Vim

  • VIM Tips Blog

Adsense

Categories

  • adsense
  • Coding Tips
  • css
  • Cygwin
  • internet history
  • perl
  • PHP
  • regexp
  • shell tips
  • trojans
  • ubuntu
  • Uncategorized
  • vim
  • windows Tips
  • wordpress
  • zsh

Blogroll

  • 101 Success and Self-Development Tips
  • Just How do you Create More Ideas?
  • Number 1 Aloe Vera Blog
  • Passive Income Streams
  • Success Diary
  • Toy Toys for Xmas
  • VIM Tips Blog
  • Zulu Principle

Archives

  • January 2012
  • November 2011
  • October 2011
  • July 2011
  • June 2011
  • May 2011
  • February 2011
  • January 2011
  • September 2010
  • August 2010
  • July 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • July 2008

Meta

  • Log in
Top WordPress
Copyright © 2008-2012 Vim, Cygwin, MySQL & Zsh Tips by zzapper
Theme by NeoEase. Valid XHTML 1.1 and CSS 3.