Search several Strings in Delphi Source with Regular Express

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Beam4711
Posts: 10
Joined: Mon Sep 08, 2003 9:06 am

Search several Strings in Delphi Source with Regular Express

Post by Beam4711 »

Hi there,

I´ve got a Delphi source with about 10.000 Lines. I need to detect all Items with the expression cLoadStr(*****) where * can be any number and cut oder copy them into another TXT-File.

Can anybody tell me which “Regular Expression� I should use?

Thx for any help - Beam
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

cLoadStr\([0-9]+\) finds such expressions with any number of digits.
cLoadStr\([0-9]{5}\) finds such expressions with exactly 5 digits.

This assumes you are using POSIX regular expression syntax:
Configuration | Preferences | Editor

[X] Use POSIX regular expression syntax
Beam4711
Posts: 10
Joined: Mon Sep 08, 2003 9:06 am

Post by Beam4711 »

Thx - i will try this
Post Reply