Regular Expressions 101

Library entries

white space before punctuations, outside script and code tags

Vote

3

Regular Expression
pcre

/
(?!<(script|code)[^>]*?>)((\s)(\?|\!|\;|\:))(?![^<]*?<\/(script|code)>)
/
gi

Description

Loading markdown...
Submitted by ced - 6 years ago