#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    5
    Rep Power
    0

    Please help with this regex ASAP!


    Hello,
    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*[ .]*.

    THANKS!!
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,988
    Rep Power
    9397
    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.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    5
    Rep Power
    0
    regex.sketchengine.co.uk ok that is the link and i need help with exercise 4
  6. #4
  7. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,988
    Rep Power
    9397
    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?
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    5
    Rep Power
    0
    Yah kind of confused. end of sentence..when there is a punctuation mark like a period.
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    22
    Rep Power
    0
    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 [.!?][")']?

IMN logo majestic logo threadwatch logo seochat tools logo