Page 1 of 1

RegEx crash

Posted: Sun Dec 10, 2023 6:39 pm
by Garfield
The following code does crash in 6.03.
"The specified #RegularExpression is not initialised"

regex has a value<>0

It's working fine in windows and linux.

Code: Select all

Dim match1$(0)
regex.l = CreateRegularExpression(#PB_Any, "[Ss]\d{1,2}[Ee]\d{1,2}")  
ExtractRegularExpression(regex, "S01E01 - blabla", match1$())

Re: RegEx crash

Posted: Sun Dec 10, 2023 6:43 pm
by STARGĂ…TE
The returning value of PureBasic library objects is always an Integer (not a Long).
Use regex.i

Re: RegEx crash

Posted: Sun Dec 10, 2023 7:10 pm
by Garfield
oh damn, yes, you're right. With .i it's working on mac too.

Thank you.