How to find Regular Expression lazarus / 9-Editor ---------------------------------------------------------------------- bpranoto · 2021-03-14 06:30 In the IDE, I want to find a regular expression. 1. Open the find dialog 2. Check Regular Expression 3. Uncheck Case Sensitive 4. Fill the Text to find: AsFloat *:= 5. Click Find Button Unfortunately, an Error dialog popped up: TRegExpr exec: empty input string Did I miss something or i just found a bug? Environment: Lazarus 2.0.12 Ubuntu 18.04 Thanks. ---------------------------------------------------------------------- Jurassic Pork · 2021-03-14 08:12 hello, can you show us, a line with what are you searching for ? Friendly J.P ---------------------------------------------------------------------- bpranoto · 2021-03-14 08:17 Hi JP, Something like: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Self.FQupdate.ParamByName('xxx').AsFloat := xxx;  The problem is not what I want to find, but the IDE find facility. Even when I put a simple text to find like 'a' it will throw the same error message. ---------------------------------------------------------------------- MarkMLl · 2021-03-14 08:42 Looks like an erratic bug in recent versions up to and including trunk. Works properly in 2.0.6, not sure about intervening versions. MarkMLl ---------------------------------------------------------------------- Jurassic Pork · 2021-03-14 08:49 with  lazarus version 2.0.10    same bug. With the option Multiline pattern no error but the result isn't good [EDIT]  O.S : windows 10 ---------------------------------------------------------------------- trev · 2021-03-14 08:52 Works in Lazarus trunk + FPC trunk on macOS. [edit] Works in Lazarus 2.0.6 and FPC 3.0.4. Fails in Lazarus 2.0.10 and FPC 3.2.0. ---------------------------------------------------------------------- ASerge · 2021-03-14 09:12 Quote from: trev on March 14, 2021, 09:52:19 amWorks in Lazarus trunk + FPC trunk on macOS. Works in Lazarus 2.0.6 and FPC 3.0.4. Fails in Lazarus 2.0.10 and FPC 3.2.0. In Windows the same: works in trunk 2.1.0, fails in 2.0.10. ---------------------------------------------------------------------- AlexTP · 2021-03-14 09:25 It is a known bug if FPC's regexpr unit. I already posted the fix, try the more recent FPC 3.2 versions. ---------------------------------------------------------------------- bpranoto · 2021-03-14 11:29 All, thank you. Glad it is already fix for the next fpc version. Just curious, does it mean TRegExp suffer the same bug? ---------------------------------------------------------------------- AlexTP · 2021-03-14 11:51 TRegExp is another component, so it does not.