Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to use regular expression?  RSS feed

 
qingwu wang
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone!
How to remove '<...>' using regex.
before: <sdss>this is <h1>the 1st</h1> test string</sdss>
after: this is the 1st test string
 
qingwu wang
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hava got it.
"<.+?>"
 
qingwu wang
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to match the date like the format of 'March 27, 2007' ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!