Note to self
Code, cooking, catman
Tuesday, April 15, 2008
common regex cookbook
I see nice regexes on the
java forums
from time to time, i am going to add them all here for use!
//1. replace leading white space in a line:
str = str.replaceAll("(?m)(?<=^ *) ", ".");
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment