[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'LazStringUtils' (#lazutils)

SimpleSyntaxToRegExpr

Creates a regular expression from a filter expression used in IDE dialogs.

Declaration

Source position: lazstringutils.pas line 61

function SimpleSyntaxToRegExpr(

  const Src: string

):string;

Arguments

Src

  

Filter expression converted to a regular expression in the routine.

Function result

Regular expression for the value in Src.

Description

Ensures that characters in Src are converted to the notation needed for regular expressions, including '.', ',', ';', '*', '+', '?', and '\'. The return value is enclosed in a regex single line expression ('^(...)$').

Used in the implementation of the Clean Directory and Change Encoding dialogs in the Lazarus IDE.


Version 4.0 Generated 2025-05-03 Home