stuff i did today
24.2.12
Regex > if
This is a simple one. I just renewed my love for regular expressions... Sometimes I forget about them and I get lost in a world of if statements.
A Quick refresher : Getting the "FOO" out of FOO_BAR
The regex for this is
".*(?=_)"
But what if we don't need the _ ?
Just tack on an | !
".*(?=_|$)"
This post is dedicated to SID.
1 comment:
Unknown
March 14, 2012 at 11:39 AM
This comment has been removed by the author.
Reply
Delete
Replies
Reply
Add comment
Load more...
‹
›
Home
View web version
This comment has been removed by the author.
ReplyDelete