Modify

Opened 10 years ago

Closed 10 years ago

#2618 closed Bug (Fixed)

_StringBetween malfunction when before and after parameters are identical

Reported by: Morthawt Owned by: Melba23
Milestone: 3.3.11.3 Component: Standard UDFs
Version: 3.3.10.2 Severity: None
Keywords: Cc:

Description

As documented in this post: http://www.autoitscript.com/forum/topic/157716-stringbetween-issue-causing-muddy-results/

When ever you use the before and after as the same string, you end up getting a completely messed up result. For example

#include <String.au3>

$test = '<"100" tester="Things">Nowhere'
$result = _StringBetween($test, '"', '"')
For $a In $result

ConsoleWrite($a & @CRLF)

Next

The result you should get is:

100
Things

But in fact what you end up with is:

100

tester=

Things

Attachments (0)

Change History (4)

comment:1 Changed 10 years ago by Melba23

As explained in that thread, the results are not "messed up", they are just not what you were expecting and what was the case in previous releases.

As it seems that there is a requirement for both the "old" and "new" behaviour the obvious answer is to add a parameter to switch between them - so we are looking into that.

M23

comment:2 Changed 10 years ago by Melba23

See proprosed new version in the linked thread.

M23

comment:3 Changed 10 years ago by Melba23

  • Owner set to Melba23
  • Status changed from new to assigned

comment:4 Changed 10 years ago by Melba23

  • Milestone set to 3.3.11.3
  • Resolution set to Fixed
  • Status changed from assigned to closed

Fixed by revision [9678] in version: 3.3.11.3

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

Action
as closed The owner will remain Melba23.
Author


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

 
Note: See TracTickets for help on using tickets.