Regex fun
*My solution to regex challenge by inginf*

Challenges : http://play.inginf.units.it

Note: Comment down if you could improvise it..

1

/d+

2

([\da-f]{2}:?){6}

3

\w+://[\w\./]+

4

\$\\?[\w_\\{}='\s\+]+\$

5

((\d\.?){1,3}){6}

6

href=('|")[\w\S]+("|')

7

http://[\w\./\?=&~;://-]+(\w|/)

8

<h[1-6].*h[1-6]>

9

\(?\d{3}\)?[\.\s/-]\d{3}[\.-]\d{4}

10

([A-Z]\w+-)?([A-Z]\w+)(,\s)([A-Z]([\{\\"u\}]+)?(\w+)?[']?)(\s?[A-Z](\w+)?)?

11

((i.+\s<s.+)?((\s?<s\w+|<a)((\s[chs]\w+="(e|m|c|h\w+://((d\.)|w|v|t))|>)).+)(([gna]>)\s?)(.+o)?|(Con\w+)|(Str\w+))

12

((?<=\.\s)\w+\,\s([A-Z]\.)+)

Written by avicoder on 21 January 2019
@avicoder