Regular Expression: Digits omitted
Posted: Sun Sep 04, 2011 3:13 am
Hi there!
It´s about omitting numbers again (omit strings of 1-2-digits only and read the longer strings fully).
The precise task: what must we do to omit every string of one or two digits surrounded by space or other non-digit characters)?
With the regular expressions /d and /d/d we can easily omit a string of 1 and 2 digits... but with /d and /d/d only... the longer digit-strings ones are no longer read fully, i.e. 123 will be 3 for example or 232332 will be 2332 (first two digits subtracted)!
Greetings
dinoe
It´s about omitting numbers again (omit strings of 1-2-digits only and read the longer strings fully).
The precise task: what must we do to omit every string of one or two digits surrounded by space or other non-digit characters)?
With the regular expressions /d and /d/d we can easily omit a string of 1 and 2 digits... but with /d and /d/d only... the longer digit-strings ones are no longer read fully, i.e. 123 will be 3 for example or 232332 will be 2332 (first two digits subtracted)!
Greetings
dinoe