Home > Back-end >  How do I use a regular rule out sentences contain a comma
How do I use a regular rule out sentences contain a comma

Time:12-09

The
reference
& lt; br> I need to be matched to the 1st sentence, for entry to implement tracking number, to timely fill the openings,

2 good English sentences as possible because I have a Chinese, a comma, so don't be matched, for example, director, general manager, staff can be divided into S1 level - S5, along with the development of the business, can be used to further refine the classification of different jobs and can be divided into S1 level - S10, & lt; br> 3 sentences at present, the information to get the data in a database, and effectively handle is considered to be the search technology at the core of the competition, therefore, be well applied to the field, because the build system based on distributed technique,

4 sentence behind me wrap, so don't be matched,


How do I use regular to match the above & lt; br> To an end, but the results need to rule out the sentence contains Chinese comma and period followed by a line feed, such as sentences in this paper, we only need to extract on no. 1, 2 and 3 sentence contains a comma, so don't, no. 4 period followed by a newline don't be so, I wrote a & lt; br> (. *? ,) (\ S), can be ruled out 4 sentences, how do I write to rule out a comma, I just want to extract 1 sentence

CodePudding user response:


[^,] *? That \ S

CodePudding user response:

Regular expression quick study regular expressions, for example, regular expressions (4 pages of A4 paper) http://download.csdn.net/detail/zhao4zhong1/1808549

CodePudding user response:

reference 1/f, zhao teacher reply:
& lt; br> [^,] *? That \ S
thank you very much for the answer, the teacher can use
  • Related