Jump to content

AutoIt RegExp Bug?


Recommended Posts

I'm trying a simple RegEx pattern which just doesn't work on AutoIt but everywhere else, I also tried it on RegEx101.com

 

here's the RegEx101: https://regex101.com/r/rookZ2/1

 

Here's the AutoIt Code (Of course the file content is correct)

 

#include <Array.au3>

$f = FileOpen("C:\Users\Lucas\Documents\test.txt",0)
$fdata = FileRead($f)
FileClose($f)

$tresult = StringRegExp($fdata,'^ABC=(0x.*)$',1)
MsgBox(0,@error,@extended)
_ArrayDisplay($tresult)

 

Edited by Tyzing
Link to comment
Share on other sites

Of course I already did that, I even checked the file with a hex editor if the line breaks are correct and everything was fine.

 

All other tools that have some kind of RegEx feature like Notepad++ work just fine with my pattern

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...