Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2017-02-06 02:33
Flavor·PCRE (Legacy)

/
(fa-[a-zA-Z0-9]*((-)?[a-zA-Z0-9])*)((\s)?\(alias\))?(\s)?(\[)?(.{8})(\])?(\s)?([0-9]\.[0-9])?(.{2})
/
g
Open regex in editor

Description

Clean and convert FontAwesome CheatShee into array with "class" name and "unicode" code. Copy cheatsheet from FontAwesome CheatShee and paste on "test string".

Submitted by Mirdani Handoko