This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
hi, i am trying to build a regex that matches this string:
something[\^]something or something\^something
i tried something like this: .*(\\[)?\\^(\\])?.* but thats not working....
any ideas? thanks
Ray Stojonic
Ranch Hand
Joined: Aug 08, 2003
Posts: 326
posted
0
this seems to do it:
output: true true false
David Harkness
Ranch Hand
Joined: Aug 07, 2003
Posts: 1646
posted
0
Originally posted by Ray Stojonic: this seems to do it: String regex = ".*\\[?\\\\\\^\\]?.*";
Note that this will also matchandIf that's not cool, tryI haven't tried it though, but it seems reasonable given Ray's test cases. [ November 08, 2004: Message edited by: David Harkness ]
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.