Regex

I stuck almost 3 hours today finding the right regex code to convert html img tag in my code.

WTF! My previous code doesn’t work!! Whats wrong?? I’m too lazy to correct it, read the F**Kin’ manual!!

Hell Yeah, after couple of hour googling, and combining the code, i get it work correctly. Heres some sort of description about Regex if you don’t know what the hell is it?

regular expression (abbreviated as regexp or regex, with plural forms regexps, regexes, or regexen) is a string that describes or matches a set of strings, according to certain syntax rules. Regular expressions are used by many text editors and utilities to search and manipulate bodies of text based on certain patterns. Many programming languages support regular expressions for string manipulation. For example, Perl and Tcl have a powerful regular expression engine built directly into their syntax. The set of utilities (including the editor ed and the filter grep) provided by Unix distributions were the first to popularize the concept of regular expressions.

Next time i post my code, time to sleep its 4am…………

2 thoughts on “Regex”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.