Skip to navigation
How to extract a substring from ruby ?
07.12.13
this is sample script: #!/usr/local/bin/ruby -w string = "Fri Dec
foo
12 1975 14:39" a = string.index(/
/) + 3 e = string.index(/<\/b>/) -1 value = string[a..e] puts value
Reply
Anonymous
How to extract a substring from ruby ?
this is sample script: #!/usr/local/bin/ruby -w string = "Fri Dec
foo
12 1975 14:39" a = string.index(/
/) + 3 e = string.index(/<\/b>/) -1 value = string[a..e] puts value
07.12.13
Reply
Anonymous
Information Epoch 1732376242
Avoid hand-hacking, write programs to write programs when you can.
Home
Notebook
Contact us