regexmatch.dev
Explore
Open main menu
Save & Share
Facebook
Twitter
Tumblr
E-Mail
Pinterest
LinkedIn
Reddit
haml attribute parsing
Published on Tue Mar 01 2022
Regex
Test String
{class: name} { class : name } { 'class' : 'name' } { 'key' : 'value', 'key': 'value' } {'key': 'value'} {' key ': ' value ' , 'this': 'guy' } {' class ': ' in session ' , 'this': 'guy' } string {' class ': ' in session ' , 'this': 'guy' } string with {{ brackets }} {' class ': '{{ parse me }}' } {'key': 'value', checked: true} {'key': 'value', checked: {{ bool }} } {'asdf': 'fda', checked: {{ bool }}, strange: {{ bool }} } stuff {{ more }} #{interpolate} {'ng-class': '{active: active.semester == undefined}', 'ng-click': 'select()'} {'ng-show': 'class.location == "Online"'} | {{ class.onlineSchool.name }} {class: 'collapse-icon', 'ng-class': '{"open-content": expanded}'} icon {} {'{}'}
Additional matching regexes for
haml attribute parsing
css attribute validation
css attribute validation
src of img tag
get contents of src attribute
Parse Data Fields
Parsing example
matching value of html src attribute
matching value of html src attribute
Element's Attribute Value in XML (simple)
Simple regular expression for extracting attribute value of the element in XML-string. Attribute value should be in quotes.
LogExpert Regex Columnizer
parsing log file
HTML image tag src
Capture src attribute of HTML image tags
IRC protocol global parsing
1. prefix (IRC protocol prefix parsing) 2. command 3. parameters (IRC protocol arguments parsing)
csv parsing
csv parsing with content quota string
aws-arn-parser
this helps in parsing aws arn's