Click here to Skip to main content
14,921,361 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi all

who know how to write the code vb.net as requirement below ?

1. if i have one statement, i want to search from which string until any string and copy it into one textbox. Example below i need to select a statement by using search from "assignment" until "is" and copy the statement found.

Ex. "If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums",

Result I need: "assignment, assume that your teacher or lecturer is"

who know how to build this kind of code ?

What I have tried:

I haven't find the answer yet. i hope someone could help me about it.
Posted
Updated 29-Apr-21 11:09am
Comments
SeanChupas 29-Apr-21 16:01pm
   
What are you stuck on?
Mr.Kim2050 30-Apr-21 10:05am
   
i try to create one code which can download website source code, then after i got the web source code, i want to search and select from which first keyword until end keyword. but i dont know how to do. if you know how to do , pls help show me.
SeanChupas 30-Apr-21 11:08am
   
There are many ways to do it so it would help if you could show us where you are stuck.

IF you have the sites html why can't you search it?

1 solution

Finding out how to do it and implementing a solution is part of the task.
And you need to read your "test data" because it is true ... they do know the sites that you are likely to copy'n'paste a solution from ...

So, no code.
But, here is a hint: String.IndexOf Method (System) | Microsoft Docs[^]
   
Comments
Mr.Kim2050 29-Apr-21 22:37pm
   
thanks let me check.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900