sibuser: (Default)
Regex which finds and highlights repeated words in a body of text.
/\b(['\w]+) (\1)\b/ig   $1 "<"strong>$2"<"/strong>"


Match dates in YYYY/MM/DD HH:MM(:SS) format. YYYY should be a year between 1000 and 2012, and everything else should be a valid month, date, hour, minute and second. The seconds should be optional. Don't worry about leap years, and assume that all months have 30 days.
/^(1\d{3}|20(0\d|1[0-2]))\/(0[1-9]|1[0-2])\/(0[1-9]|[1-2]\d|30) ([0-1]\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/i

Sibuser

sibuser: (Default)
sibuser

April 2015

S M T W T F S
   12 34
567891011
12131415161718
19202122232425
2627282930  

Most Popular Tags

No cut tags
Page generated Jul. 21st, 2025 07:18 am
Powered by Dreamwidth Studios