Opened 9 years ago

Closed 9 years ago

#2618 closed Bug (Fixed)

_StringBetween malfunction when before and after parameters are identical

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


As documented in this post:

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)


The result you should get is:


But in fact what you end up with is:




Attachments (0)

Change History (4)

comment:1 Changed 9 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.


comment:2 Changed 9 years ago by Melba23

See proprosed new version in the linked thread.


comment:3 Changed 9 years ago by Melba23

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

comment:4 Changed 9 years ago by Melba23

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

Fixed by revision [9678] in version:

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 owner will remain Melba23.

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

Note: See TracTickets for help on using tickets.