Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
"JavaRanch, where the deer and the Certified play" - David O'Meara
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Normal is in the eye of the beholder
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Also, is this to merely validate your string or would you like to glean out the values?
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
$ perl checkit
Data: .25
It's a match!
Data: 23'-2 9/16
It's a match!
Data: '-2 3/4
No MatchData: .25'
It's a match!
Data: .25"
It's a match!
Data: 10
It's a match!
Data: 0
No Match
Data: 2'
It's a match!
Data: 3"
It's a match!
Data: 1.37'
It's a match!
Data: 1'2
It's a match!
Data: 1'-2
It's a match!
Data: 1-2 3/4
It's a match!
Data: 3'- 13/16
It's a match!
Data: 3' 2
No Match
Data: 3' 2"
No Match
Data: 2'3"
It's a match!
Data: 3'- 20/100
No Match
Data: <CTRL D>
$
Normal is in the eye of the beholder
(BTW it�s Perl not PERL ).
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
And inside of my fortune cookie was this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|