apperceive

20 Ağustos 2014 Çarşamba

How to get exact number in a string with using ruby

When I search a useful code block so as to find exact number in a string, I come accross this fruitful function in Ruby:

  • str.delete("^0-9.")

Gönderen Againstsciolism zaman: 01:51
Bunu E-postayla GönderBlogThis!X'te paylaşFacebook'ta PaylaşPinterest'te Paylaş
Etiketler: Regular Expression, Ruby, String operations

Hiç yorum yok:

Yorum Gönder

Sonraki Kayıt Önceki Kayıt Ana Sayfa
Kaydol: Kayıt Yorumları (Atom)

Hakkımda

Againstsciolism
Profilimin tamamını görüntüle

Blog Arşivi

  • ▼  2014 (17)
    • ►  Aralık (1)
    • ►  Kasım (3)
    • ▼  Ağustos (9)
      • Google Chrome using with proxy in Linux
      • How to check whether a string contains a substring...
      • How to get exact number in a string with using ruby
      • error: device unauthorized. Please check the confi...
      • Convert pdf to image in linux
      • Quick ntfs format in Linux
      • qemu-timer.o: undefined reference to symbol 'timer...
      • ../.././gcc/libgcc.mvars: No such file or directory
      • Fruitful Regex Hints
    • ►  Temmuz (4)
  • ►  2013 (1)
    • ►  Temmuz (1)
  • ►  2012 (13)
    • ►  Temmuz (1)
    • ►  Mayıs (12)
Harikalar Tic. teması. Blogger tarafından desteklenmektedir.