![]() |
| |||||||
| Perl Forum Perl Forum. Perl Programming and coding forum. Post code, questions, answers and ideas here. |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
| |||
| Perl search for same word appearing twice using { }?
I'm trying to identify lines in a text file that have the word "light" appearing at least twice. For example, Gen 1:3 has: And God said, "Let there be light; and there was light. The PCRE newbie is stumped at how to specify that with the { } syntax. I can get it to work with: light.+light but I want to understand how to use {2,} I've used boost::regex, and I think the following would have worked: (light){2,} but this doesn't seem to work (at least for me) with PCRE. And actually, what I'm trying to accomplish is finding a line with either "light" or "evening" appearing twice ... but not either "light" or "evening" each appearing. An example is 2 Chron 13:11 with "evening" appearing twice. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to write a perl script to search text files for a specific string and | Travis C | Perl Forum | 1 | 06-04-2008 02:46 AM |
| how to search a word from paragraph in c language (need simple coding using strcmp... | shock | C# Programming Forum | 0 | 04-25-2008 11:13 AM |
| Every time i google search I get another "search engine called "Search | paul k | Google Forum | 0 | 01-11-2008 02:10 PM |
| my friend opened a website but nobody is able to search it on google or yahoo search? | sassy_girl | Google Forum | 0 | 01-11-2008 07:22 AM |
| Why are blue spots appearing on my lcd projection tv? | Matty | Rear Projection TV Forum | 2 | 01-04-2008 10:08 AM |