This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regular Expression

 
Alex JabaKumar
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi anyone help me out how to write reg.expression for the following...

i need to split the names with the delimiter Mr or MR or mr or mR.

public class RegExp {
public static void main(String[] args) {

String testString = "mrstephMRpaulMRRusswehMrKeerDIMRNDIFDF";
String[] re = testString.split(____);
for(String s : re)
{
System.out.println(s);
}
}
}

Thanks,
alex
 
Henry Wong
author
Marshal
Pie
Posts: 20836
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have your tried so far? (hint: regular expression patterns have a case insensitive flag)

Henry
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic