Opened 18 years ago
Closed 18 years ago
#20 closed Bug (Rejected)
[:class:] in regex
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.2.10.0 | Severity: | |
| Keywords: | regex, regexp, StringRegExpReplace | Cc: |
Description
StringRegExp says that [:space:] is recognized.
But this one works:
StringRegExpReplace($s,"(re:|fw:|fwd:)\s*","")
but these didn't:
StringRegExpReplace($s,"(re:|fw:|fwd:)[:space:]*","")
StringRegExpReplace($s,"(re:|fw:|fwd:)([:space:])*","")
Attachments (0)
Change History (2)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
| Resolution: | → rejected |
|---|---|
| Status: | new → closed |
Replying to anonymous:
StringRegExp says that [:space:] is recognized.
But this one works:
StringRegExpReplace($s,"(re:|fw:|fwd:)\s*","")
but these didn't:
StringRegExpReplace($s,"(re:|fw:|fwd:)[:space:]*","")
StringRegExpReplace($s,"(re:|fw:|fwd:)([:space:])*","")
as stated by Mega there is no error as the [:space:] must me included in []. It is described in the doc

Hi,
works for me:
So long,
Mega