Opened 6 years ago

Closed 6 years ago

#3591 closed Bug (No Bug)

Error in the RegExp

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


It is not working:

$text = ""
$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 Changed 6 years ago by jguinch

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

comment:2 Changed 6 years ago by BrewManNH

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.

Version 0, edited 6 years ago by BrewManNH (next)

comment:3 Changed 6 years ago by BrewManNH

  • Resolution set to No Bug
  • Status changed from new to closed

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.