•

Check out our Community Blogs

# Fischerspooner

Member Since 06 Dec 2006
Offline Last Active Dec 13 2006 05:12 AM

### [RegExp] Financial value yes/no

12 December 2006 - 01:33 AM

Hi,

I'm trying to determine of a given value is a financial one.

It should match:
- can be positive or negative (ie. 1234.56€ or -1234.56€)
- has minimum 2 digits after the . (ie 1234.5€ should return false)
- whitespaces should be ignored so the user can type 1234.56 € and it still returns true.

I came up with this:
`(-|?)[0-9]*(\.|\,)\d\d+€`

but I'm having some problems with the whitespaces. Can someone push me in the right direction please? Or maybe it can made better? It's tested with Regular Expression Library.

### Looking for a song

10 December 2006 - 11:04 AM

Heyhey,

I just ran into a sweet trippy movie and I'm wondering if anyone knows the song that is used...?

http://www.skoften.n...id=4398_0_1_0_C

### Free Image Backup

08 December 2006 - 07:33 AM

OFFTOPIC

Why dont you guys make a HD image?
DriveImageXML, a free tool.

http://www.runtime.org/dixml.htm

### Moving elements in an array

06 December 2006 - 11:48 AM

Hi,

I'm currently studying Java on my own and I wanted to try to "rotate" elements in an array.
So the start would be:
{5,3,8,7,7,2,0,6,1,4}
But if I enter "rotate 1" it should give me
{4,5,3,8,7,7,2,0,6,1}

But I keep running into ArrayIndexOutOfBounds errors if I check my pseudocode in Java.

I don't want some code, just a hint or two would be very much appreciated:)

This is what I have already:
```for(t=DIM-1 ; t > rot ; t--)
{
if(t < DIM)
{
k = table[t];
table[t-1] = table[t];
table[t+1]= k;
}
else
{
k = table[t];
table[t-1] = table[t-DIM];
table[t+1] = k;
}
}
```

### New guy in town

06 December 2006 - 11:36 AM

Hello,

Searching the internet about moving elements in an array I bumped on your forum
I'm a 29 year old guy getting more and more interested in programming. Just learning Java with BlueJ.
Other hobbies are: getting pierced, tats, music

If you got any questions...fire away:)

-f

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download