The Artima Developer Community
Sponsored Link

Java Buzz Forum
Regexp group capture with optional delimeter

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
josef betancourt

Posts: 262
Nickname: averagejoe
Registered: Mar, 2013

josef betancourt is developer using Java and other stuff
Regexp group capture with optional delimeter Posted: Apr 19, 2014 11:06 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by josef betancourt.
Original Post: Regexp group capture with optional delimeter
Feed Title: T. C. Mits
Feed URL: http://octodecillion.com/feed/
Feed Description: Java development and other technology topics
Latest Java Buzz Posts
Latest Java Buzz Posts by josef betancourt
Latest Posts From T. C. Mits

Advertisement
Ever had one of those days where the simplest thing seems complex? A simple regex is doing that to me now. This is the example, simplified. You have a string “BEFOREAFTER”. If this string has a ‘x’ in it, you want to capture everything before the ‘x’, else you want to capture the whole string. [...]

Read: Regexp group capture with optional delimeter

Topic: Conway’s Game of Life and the Flyweight Pattern Previous Topic   Next Topic Topic: Maven and Java multi-version modules

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use