473,471 Members | 1,768 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Grab A Whole Word in C#

2 New Member
Hello,
I am new with C# but have experienced in other similar languages such as Java. What I am trying to do is search a long .l5k file for any time a line begins with "f_". Once I find this line, I want to grab the whole "f_" phrase i.e. "f_someRandomTextFollows".

How do I grab the whole word by just knowing the index and not knowing the length?

Thanks for any comments.
Jul 11 '07 #1
2 1412
Silent1Mezzo
208 New Member
Hello,
I am new with C# but have experienced in other similar languages such as Java. What I am trying to do is search a long .l5k file for any time a line begins with "f_". Once I find this line, I want to grab the whole "f_" phrase i.e. "f_someRandomTextFollows".

How do I grab the whole word by just knowing the index and not knowing the length?

Thanks for any comments.
You should probably put this in the .NET forums
Jul 11 '07 #2
bartonc
6,596 Recognized Expert Expert
Hello,
I am new with C# but have experienced in other similar languages such as Java. What I am trying to do is search a long .l5k file for any time a line begins with "f_". Once I find this line, I want to grab the whole "f_" phrase i.e. "f_someRandomTextFollows".

How do I grab the whole word by just knowing the index and not knowing the length?

Thanks for any comments.
I'm glad to see that you have found the .NET Forum and reposted there [hint to mod: leave it here so it doesn't look like a double post there].
Jul 11 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: dan glenn | last post by:
hi. I want to code a 'preview' function into a guestbook entry page. I can do it with a button that posts, bringing up a whole new page showing a preview of what has been entered, and then the user...
0
by: Mel_la_Bel | last post by:
Hi All, I'd like to get the content of windows(?), maybe they are MsgBoxes, that pop up in MS Word, like the ReadabilityStatistics after the Grammar check. Can I get control to the window that...
4
by: louise raisbeck | last post by:
Resending this as own topic as didnt get answer from original. Would be grateful for a response from anyone that knows. Thanks. Hi there, I found your post really helpful..but i wondered if, once...
0
by: leeonions | last post by:
Hi there, i am trying to use regular expressions to search through a text string and replace a given whole word. take the string = "The matsat on the mat!" (bad example i know) i want to...
2
by: leeonions | last post by:
Hi there, i am trying to use regular expressions to search through a text string and replace a given whole word. take the string = "The matsat on the mat!" (bad example i know) i want to...
24
by: Randall Arnold | last post by:
I know how to use MSHTML to grab the innerhtml from an html web page, but what if I want to look at elements of a rendered aspx page? Is there any way to do this using the MSHTML DOM object? ...
4
by: shonend | last post by:
I am trying to extract the pattern like this : "SUB: some text LOT: one-word" Described, "SUB" and "LOT" are key words; I want those words, everything in between and one word following the...
1
by: summersurfer25 | last post by:
Hello, I am new with C# but have experienced in other similar languages such as Java. What I am trying to do is search a long .l5k file for any time a line begins with "f_". Once I find this line, I...
19
by: JRough | last post by:
I have used this function to create a string called $headers: function GetHeaders($file_name){ return "<th><a href='".$file_name."&order_by=l_e'>L_E</a></th> <th><a href='"....
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.