Jump to content

Recommended Posts

Posted

And there is much more than that. Refer to the PCRE doc mentionned in .sig

  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Posted

Yes, I looked through full documentation. I think this part has to remain in additional documentation. Simply I never saw that someone used it. The user will want to know what it is and just spend a couple of hours to no avail, as I did when guinness added.

Posted

So what should I do? I'm confused?! As I see it nothing.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Indeed, exposing most (not even all) of the PCRE pattern syntax and semantics seems well beyond the realm of our help file. That's why I think that giving the users "some" clues with the very basics is good enough, along with a pointer to the relevant official doc which we should have available for viewing and download in some folder of the AutoIt domain.

The full PCRE doc is available in html form as part of the source package and it won't be difficult to extract the pcrepattern.html file every time the module is recompiled for a new AutoIt release. Most of the other PCRE docs are of little interest to AutoIt users (internal API, compile options, companion tools, etc.)

A similar situation exists with other parts, components or UDFs included in the distribution. We don't teach all of WinAPI, nor GDI+, COM/DOM details for every product supported, every gory detail about SQLite, and so on. Interested users have enough basic guidelines and clues to decide whether they want/need to dig further, they have Google and MSDN for free and may always ask questions on the forum when they're at loss.

It's always difficult to draw a strict line when it comes to documenting complex embedded components discussed elsewhere in great detail. Some will find that a basic presentation is too minimalist to be useful, some will say that a more ambitious discussion is not complete enough or too hard to grasp at first...

  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Posted

I believe all that was missing was lookahead and lookbehind (now implemented) and maybe adding additional info to R. But other than it's what was initially in the help file that got me interested in researching regular expressions further.

I am happy to change the doc by the way.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

The doc pointed to (Complete description can be found here) is the old PCRE v8.11 while Jon linked the beta to v8.33.

Then the General comments about UTF-8 mode is outdated as the beta is now using the PCRE16 interface with great benefit. AutoIt is using a large subset of UTF16LE and now strings are passed verbatim to and from PCRE functions.

Also PCRE as compiled in AutoIt includes UCP (Unicode Character Properties) support, something very important to non-english users. Now casing is extended to the full AutoIt character range, no more limited to only 7-bit ASCII. Best refer to the full doc for details.

POSIX character classes don't extend to Unicode (worth noting that) and their description is unchanged.

In Remarks, 2nd § "Regular expression notation is a compact way of..."

It would be clearer to say:

"AutoIt uses the PCRE regular expression engine. Regular expression notation is a compact way of..."

s now matches a few more codepoints.

I'm missing lot of other points but it's a bit late now.

  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Posted

When you're not busy, feel free to edit >> http://ge.tt/2f6g5Io/v/0?c and send back to me . Cheers.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Warm thanks. Will look at it with two eyes open, i.e. later!

  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Posted

Take your time, I'm in no hurry.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

guinness

FileGetAttrib

#include <Constants.au3>

Example()

Func Example()
    ; Assign a variable with the filepath to check on whether it's a file or not.
    Local $sFilePath = ':::::::::::::'

    If IsFile($sFilePath) Then
        MsgBox($MB_SYSTEMMODAL, "", "The filepath is a file.")
    Else
        MsgBox($MB_SYSTEMMODAL, "", "The filepath is not a file.")
    EndIf
EndFunc   ;==>Example

; Check if the filepath is a file.
Func IsFile($sFilePath)
    Return StringInStr(FileGetAttrib($sFilePath), "D") = 0
EndFunc   ;==>IsDir

':::::::::::::'  - This file?

Posted (edited)

Without overcomplicating the example I went for a simple approach.If you want to edit be my guest.

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

OK, I fixed the comments by adding a note that it doesn't validate if the file or folder exists.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

v3.3.8.1  AdlibRegister, Example:

    ;... execution must be non blocking, avoid ...Wait(), MsgBox(), InputBox() functions
        
I guess there used to be 'Wait()' and this should say 'Sleep()' now.
 

Posted

  On 8/11/2013 at 10:22 AM, RichardL said:

v3.3.8.1  AdlibRegister, Example:

    ;... execution must be non blocking, avoid ...Wait(), MsgBox(), InputBox() functions

        

I guess there used to be 'Wait()' and this should say 'Sleep()' now.

It means functions like WinWait, WinWaitClose etc.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

guinness

  Quote
OK, I fixed the comments by adding a note that it doesn't validate if the file or folder exists.

If you insert an entirely what I suggested, the number of examples will be smaller and lines will be less.

  Quote
'...Wait()'

In Russia, too, asked what it was. But I did not change. Ellipses indicate the omitted text

Posted

in FileDelete help

 

  Quote
See FileFindFirstFile for a discussion of wildcards.

Some file attributes can make the deletion impossible, if this is the case look at FileSetAttrib to change the attributes of a file.

 

 

FileFindFirstFile is a link to the right help

please do the same with FileSetAttrib

 

ps.

I check it with v3.3.9.13 (Beta) help

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

  On 8/12/2013 at 3:38 AM, mlipok said:

in FileDelete help

FileFindFirstFile is a link to the right help

please do the same with FileSetAttrib 

ps.

I check it with v3.3.9.13 (Beta) help

Done.

AZJIO,

I did implement what you added, but felt the @error was unnecessary since it returns a boolean value.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

  On 8/11/2013 at 10:22 AM, RichardL said:

v3.3.8.1  AdlibRegister, Example:

    ;... execution must be non blocking, avoid ...Wait(), MsgBox(), InputBox() functions

I guess there used to be 'Wait()' and this should say 'Sleep()' now.

In the end I changed the examples. Therefore check in the next beta version of AutoIt to see if it makes sense.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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