Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/04/2019 in all areas

  1. mikell

    RegExp Help ^_^

    This one is already used
    2 points
  2. mikell

    RegExp Help ^_^

    Hmm. Next time there will be the -tel/-tel field , but no -email/-email field ... probably. So let's anticipate : $cPattern = "(?is)\[([^\]]+)\]\[((?1))\]\[((?1))\]\[((?1))\]\[?((?1))?.*?Bonjour,\s*(.+?)\hvous.+?(?:email\h:\h(.*?))?(?|[\s-]+tél\.\h:\h(.*)?|()$)" Note that with this one, the array is always 7 elements. If the required info is missing, the row is left empty
    1 point
  3. mikell

    RegExp Help ^_^

    Just suggest to the regex engine an alternation : either the whole "tel" field, or the end of string $cPattern = "(?is)\[([^\]]+)\]\[((?1))\]\[((?1))\]\[((?1))\]\[?((?1))?.*?Bonjour,\s*(.+?)\hvous.+?email\h:\h(.+?)(?:[\s-]+tél\.\h:\h(.+)?|$)"
    1 point
  4. mikell

    RegExp Help ^_^

    Glad I could help But please keep cool. Francesco's words are a bit rude but they are not totally false He provided a lot of answers - which means a lot of time and thinking - while the requirements were continuously changing. This topic is now 3 pages long and could have been much shorter The main rule when asking for regex help is : first consider all possible cases likely to occur, and when done then work to find the best pattern and ask for help. This is better as much for you (to get the correct answer faster) as for helpers (less time/energy to spend) BTW I didn't provide explanations for my pattern. Lazy I am... so If you need some then feel free to ask
    1 point
  5. mikell

    RegExp Help ^_^

    Obviously when all possible cases are mentioned the requirements are different... $cPattern = "(?is)\[([^\]]+)\]\[((?1))\]\[((?1))\]\[((?1))\]\[?((?1))?.*?Bonjour,\s*(.+?)\hvous.+?email\h:\h(.+?)[\s-]+tél\.\h:\h(.+)?"
    1 point
  6. Malkey

    RegExp Help ^_^

    @caramen In your above post starting with "Look i put all possible cases in one script ....", try replacing the RE pattern, $cPattern in the example with :- $cPattern = "(?is)\[([^\]]+)\]\[((?1))\]\[((?1))\]\[((?1))\]\[?([^\]]*)\]?.*?Bonjour,\s*(.+)\hvous.+email\h:\h([^""]+).+tél\.\h:\h([^""]*)"
    1 point
  7. works for me too. I tested the top version of code too, it works without ie being opened and returns the body text of that page
    1 point
  8. Strange, like I said, I use your code without a change and it is working fine for me. Maybe try to unhide the IE to see what's going on.
    1 point
  9. powbam

    Just an introduction..

    Just wanted to say hi and thanks to all the contributors of this forum/site. Also to create an account in case I ever do need to post some questions. I wanted to start learning to program (I am 40 years old, btw) and I was often frustrated with the material available to self-teach (even for languages like Python). Then I wandered on to AutoIt somehow and the entry barrier to begin learning was vastly easier to breach than anything else I have come across. Google searching "autoit + whatever I needed to know" has been proven invaluable to me in the creation of my program and thanks to this forum I have neared completion of it and at the moment have around 2000 lines of code. @Melba23 Many of your posts in particular helped me achieve many of the goals of my program. Thanks alot and to everyone else whose posts may have helped. Here is a pic of what I got so far: It is a program related to "Switching" around various save files and folders for ease of use for both Steam and GOG versions of a game I am a playtester of called Grim Dawn. It's actually a fairly niche tool, made specifically for people who own the game from both game clients, but it does have broader uses, one of those "backing up save folders for different expansion packs" is the one major feature I have left to integrate in to it. Thanks again and if this wasn't the ideal place to post this, sorry, as I could find no other better alternative on this forum.
    1 point
  10. So I think it's time to publish this little tutorial I have made on using DllCall() and DllStructs. It's not near completion but I think it's a good start at least This tutorial is mostly aimed for people who have never used DllCall() before or have very limited knowledge about it. In the future I will update it with more advanced topics so more advanced users can make use of it too. Well here goes. Dealing_with_Dll.pdf Previous downloads: 31 Suggestions, language corrections and errors in the tutorial is of course welcome.
    1 point
  11. argumentum

    DLL Helper

    http://www.mediafire.com/file/s5cae99mzncsqef/DLLHelper_source.zip and http://www.mediafire.com/file/66jb6jl19mlxy56/DLLHelper_bin.zip @wakillon, I did see your share and decided to open an account too. I'm testing the account, see how it works
    1 point
  12. ProgAndy

    xMsgBox

    Some time ago, i found an example in VB on how to chage the names of the Buttons in a MsgBox. Many people want this functionality, so I converted it to AutoIt and here it is: ;### EXAMPLE #include "CustomMsgBox.au3" $REturn = xMsgBox(16+0x200,"Title","Text","Butt 1","The 2nd","The3rd",Default,34,"C:\vista.ico") MsgBox(0, 'ReturnValue:', $REturn)CustomMsgBox.au3
    1 point
×
×
  • Create New...