• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Regular Expression  RSS feed

 
Arun kartik Rajendran
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the regular expression to search both string and special characters.

Foe ex

userString="Experience is the best source <>of K&nowledge"

I need to find the word "best" as well as &(special charecters) in a single pattern matcher
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Moving to Java in General forum.

Henry
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked out the RegEx tutorial?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!