Modify ↓
Opened on Feb 9, 2018 at 8:47:56 AM
Closed on Feb 9, 2018 at 5:23:38 PM
#3591 closed Bug (No Bug)
Error in the RegExp
| Reported by: | 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:2 by , on Feb 9, 2018 at 5:20:04 PM
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 on Feb 9, 2018 at 5:20:04 PM by (next)
comment:3 by , on Feb 9, 2018 at 5:23:38 PM
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

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