Paul Harwood wrote:

>I am trying to parse through the following line:
> 
>TUITimer> TUI Dead Air Timer::1828ms::
>
>I want to extract the 1828 value. The regex I have is: 
>
>if ( /TUI Dead Air(\d+)/ ) {
>
>I know this is wrong but I have tried every variation
>of \s that I can think of with no success. Also, is
>there a Regex generator of some kind where I can enter
>text searches and have them translated to Perl Regex
>format? I am using a Win32 platform.
>
>--Paul

If you know that it will be the only number on the line, try this:

if ( /(\d+)/ ) {

Not sure of any tool like you described...

- Alan

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to