Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt on Regular Expression

 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I've tried to use Greedy/Reluctant/Possessive quntifiers, but can't get the result I expected. Can someone help me out?

Thanks.
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use ".*\\|" as the regular expression.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic