Giter Club home page Giter Club logo

go-regex-utility's People

Contributors

binkkatal avatar norbinsh avatar patil-ashutosh avatar souvikmaji avatar suramrit avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

go-regex-utility's Issues

Remove non-alphanumeric characters

Description

Remove all characters from a string which are not in a-z A-Z 0-9 using regex

  • Method can be added in rstring/string.go file

Acceptance Criteria

  • Add Unit Tests
  • Add Documentaion

This repository is valid for HacktoberFest2020

Read before making PR - How to contribute on Github

Note: Feel free to open PR as these PR will be counted for hactoberfest acceptence

Validate and Decompose File Paths

Suggested Feature - Validate and extract components of a File Path

Description: Given a string that describes a file path, we can validate that the path is correct and if valid, we extract the components of the path.
The complexity of the problem lies in differentiating between different addressing: mac, windows, unix, network based

Egs: mac/Linux - /Users/topFolder/subFolder/File.ext - returns [true, [Users, topFolder,subFolder], file.ext]
Windows - C:\Projects\apilibrary\apilibrary.sln - returns [true, [C, Projects,apilibrary] , apilibrary.sln]
Windows Network path - \ComputerName\SharedFolder\Resource - returns [true, [ComputerName,Shared Folder], Resource]
Incorrect - sample.txt/folder/ - returns [false,nil, ""]

Remove all line breaks from a string

Description

Remove all line breaks from a string using regex
Line break varies between operating system encodings.

  1. Line break on Windows would be \r\n
  2. Line break on Linux would be \n
  3. Line break on Apple would be \r
  • Method can be added in rstring/string.go file

Acceptance Criteria

  • Add Unit Tests
  • Add Documentaion

This repository is valid for HacktoberFest2020

Read before making PR - How to contribute on Github

Note: Feel free to open PR as these PR will be counted for hactoberfest acceptence

Validate the date format in "dd/mm/yyyy"

Description

  1. Validate the date format in "dd/mm/yyyy"
  2. Create method to validate date format
  3. Examples
    i) Date: 1/14/2018 -> false
    ii) Date: 31/07/2010 -> true
  • Method can be added in rvalidation package

Acceptance Criteria

  • Add Unit Tests
  • Add Documentaion

This repository is valid for HacktoberFest2020

Read before making PR - How to contribute on Github

Note: Feel free to open PR as these PR will be counted for hactoberfest acceptence

Check for special characters in a string

Description

  • Add Method which checks for special characters in string, return true if special character are present in string else return false.
  • Special characters -> (/*-+_@&$#%)
  • Method can be added in rstring/string.go file

Acceptance Criteria

  • Add Unit Tests

  • Add Documentaion

This repository is valid for HacktoberFest2020

Read before making PR - How to contribute on Github

Note: Feel free to open PR as these PR will be counted for hactoberfest acceptence

Validate an IPv4 Address

Description

  1. What is valid IPv4 criterion?
  2. Create method to validate IPv4
  • Method can be added in rvalidation package

Acceptance Criteria

  • Add Unit Tests
  • Add Documentaion

This repository is valid for HacktoberFest2020

Read before making PR - How to contribute on Github

Note: Feel free to open PR as these PR will be counted for hactoberfest acceptence

Validate an IPv6 Address

Description

  1. What is valid IPv6 criterion?
  2. Create method to validate IPv6
  • Method can be added in rvalidation package

Acceptance Criteria

  • Add Unit Tests
  • Add Documentaion

This repository is valid for HacktoberFest2020

Read before making PR - How to contribute on Github

Note: Feel free to open PR as these PR will be counted for hactoberfest acceptence

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.