Skip to content
View TheAlienMann's full-sized avatar
🎯
Focusing
🎯
Focusing

Block or report TheAlienMann

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Networking Networking Public

    Swift

  2. LeetCodeBlind75SolutionsTDD LeetCodeBlind75SolutionsTDD Public

    Swift

  3. "Grab The City" is a challenge that ... "Grab The City" is a challenge that wants you to extract the name of the city in a given sentence which the name is wrapped in a pair of square brackets in the end of the sentence.
    1
    func grabCity(_ str: String) -> String {
    2
    //  the commented line below (the regex to be exact) gets just the last word! which is wrong, my fault though, i didn't read the challenge corectly!
    3
    //  let regex = try! NSRegularExpression(pattern: "(\\w+)(?!.*\\w)", options: [])
    4
    //  the regex below get every matches in the sentence that is being wrapped in a pair of square brackets.
    5
      let regex = try! NSRegularExpression(pattern: "(?<=\\[)(.+?)(?=\\])", options: [])
  4. EssentialApp EssentialApp Public

    Essential Developer iOS app

    Swift 3

  5. EssentialFeed EssentialFeed Public

    Swift

  6. EssentialFeediOS EssentialFeediOS Public

    Swift