If I have a srt file (lines in similar format given below).
00:02:21,085 --> 00:02:22,709
Just tell Cuddy you've
got an urgent case.
00:02:22,709 --> 00:02:24,680
- You had to leave early.
- That would be lying.
00:02:24,680 --> 00:02:26,119
And that would be wrong.
I would like to know if there is some possible way to distinguish between numeric and characters so that we can compare all digits (0-9) and words (a-z,A-Z).
The mentioned code will only do for a sinlge line matching whereas I want to compare thousands of lines in a file which start with different numeric combination and alphabets combination and want to extract lines with only alphabets.
Is there some possible way out? Lik could you compare all digits '0,1,2,3,4,5,6,7,8,9' 'a,b,c,...,z; and do extraction on this base.
I provided an answer to the question that you asked, which was
I would like to know if there is some possible way to distinguish between numeric and characters
Now it is up to you to take that principal and implement it in a simple loop to finish this task. We're not here to create custom solutions for you, we simply help when you get stuck and teach you how to teach yourself to program. Please read the site policies and forum guidelines, as well as all posted announcements before posting.
It would also help if you tried searching to see if other people have already had the same question answered (HINT: they have).
I am writing a java program that needs to execute shell commands, so I wrote a function that would take the command to execute as a string (ie: "mkdir ~/Folder1") and execute that command with the shell. Here is the function:
Runtime run = Runtime.getRuntime();
Process pr = ...
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.