apperceive

22 Ağustos 2014 Cuma

How to check whether a string contains a substring in Ruby

If you look for a method in order to use while searching a string contains a substring, you could use this method;
a = "Skill"
if a.include? "ll"
    puts "exist"
end
Gönderen Againstsciolism zaman: 07:30
Bunu E-postayla GönderBlogThis!X'te paylaşFacebook'ta PaylaşPinterest'te Paylaş

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.