March 7th, 2013, 12:17 AM
Please help with this regex ASAP!
I almost have the correct regex....this is the link:
ok so im not able to post links but if you google regex uk it is the fourth exercise that i need help on!
AND this is what i have: .*s.*h.*.i*[ .]*.
March 7th, 2013, 12:43 AM
You do know that Google shows different results to different people, right?
You can post links, just don't make them look like links. Or describe the problem.
March 7th, 2013, 12:51 AM
regex.sketchengine.co.uk ok that is the link and i need help with exercise 4
March 7th, 2013, 01:49 AM
No need for duplicate threads.
I don't see how your regex has anything to do with ends of sentences? First write a solution in English. How do you decide where the end of a sentence is?
March 7th, 2013, 01:52 AM
Yah kind of confused. end of sentence..when there is a punctuation mark like a period.
March 7th, 2013, 10:56 AM
This approach wouldn't work for all cases, but it looks promising to the positive and negative samples they list.
For the positive you would have something like "search for [.!?] that are optionally followed by [")']
For the negative: make sure there is white space following the [.!?][")']? and make sure there is [^,.?] within 3 characters of the match [.!?][")']?