Modify

Opened 8 years ago

Closed 8 years ago

#3591 closed Bug (No Bug)

Error in the RegExp

Reported by: omash@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.14.3 Severity: None
Keywords: RegExp Cc:

Description

It is not working:

$text = "192.168.0.1"
$Pattern = "(?(^\d{1,3}\.)((\d{1,3}\.){3}\d{1,3})|(\w+-){5}(\w+))"
$result = StringRegExp ($text, $Pattern, 3)
_ArrayDisplay ($result)

Attachments (0)

Change History (3)

comment:1 by jguinch, 8 years ago

I don't see any bug here, just a bad regular expression

comment:2 by BrewManNH, 8 years ago

What were you hoping to see in the _ArrayDisplay output?
Your RegExp isn't valid, so you won't see anything with that as written.

To validate your RegExp, I'd suggest going here https://regex101.com/ to test it before declaring a bug

Last edited 8 years ago by BrewManNH (previous) (diff)

comment:3 by BrewManNH, 8 years ago

Resolution: No Bug
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.