> > I have text in a file that looks like this:
>
[quoted text clipped - 7 lines]
>
> Arne
\d+ is for digits, but that area might contain whitespace, tabs or
carriage returns also.
Arne Vajhøj - 09 Mar 2008 00:47 GMT
>>> I have text in a file that looks like this:
>>> [
[quoted text clipped - 5 lines]
> \d+ is for digits, but that area might contain whitespace, tabs or
> carriage returns also.
If it contains whitespace then what do you want returned ?
Arne
DotNetNewbie - 09 Mar 2008 01:49 GMT
> >>> I have text in a file that looks like this:
> >>> [
[quoted text clipped - 9 lines]
>
> Arne
The integer value 2.
Arne Vajhøj - 09 Mar 2008 01:53 GMT
>>>>> I have text in a file that looks like this:
>>>>> [
[quoted text clipped - 7 lines]
>
> The integer value 2.
If it does not contain any digits but only whitespace at that
position you want it to return 2 ??
Arne
DotNetNewbie - 09 Mar 2008 02:58 GMT
> >>>>> I have text in a file that looks like this:
> >>>>> [
[quoted text clipped - 12 lines]
>
> Arne
The text is like this:
[
2
in stock]
All that whitespace could be: 1) whitespace 2)carriage return 3) tabs
I want to extract the integer value (in the example I'm giving it is
2).
Arne Vajhøj - 09 Mar 2008 04:15 GMT
>>>>>>> I have text in a file that looks like this:
>>>>>>> [
[quoted text clipped - 19 lines]
> I want to extract the integer value (in the example I'm giving it is
> 2).
\s matches space, CR and TAB !
So I do still not understand the problem.
Arne
DotNetNewbie - 10 Mar 2008 15:51 GMT
> >>>>>>> I have text in a file that looks like this:
> >>>>>>> [
[quoted text clipped - 25 lines]
>
> Arne
Ok I got it to work!