How can I detect a word starting at new line?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Shaji_Kalidasan
Posted On:   Wednesday, May 23, 2001 02:51 AM

Please explain me, how I can identify a word beginning at a new line. For example

"From Shaji From the source.... . This message is From a source whom you can rely on...AgainFrom and once MoreFrom ...and Yet againFrom"

The above sentence have 6 "From", How to get the pattern "From" which is at the beginning of a line. In our sentence (assuming that the sentence is a single line ) there is only one "From". Please tell me how to detect the same?

Re: How can I detect a word starting at new line?

Posted By:   Christopher_Schultz  
Posted On:   Wednesday, May 23, 2001 11:34 AM

Take a look at the GNU Regular expression library.



You'll want to use a regular expression like this: "^([a-zA-Z]*", which will match all strings made up of any sequence of lower- and upper-case letters directly following the beginning of a line.



-chris
About | Sitemap | Contact