Link to home
Start Free TrialLog in
Avatar of awwyeah
awwyeah

asked on

Need help with TCL's regexp and regsub

I code tcl scripts for eggdrops on IRC.
The thing is I am quite good with tcl scripting such as string matching and most of the list, string functions and I see pre-written scripts and get ideas from them.

I am having troubles with regexp, regular expressions and regsub complex matching. I don't really know how to use regexp to match certain types of patterns. Could anyone give me examples or tutorials on how to match regular expressions such as specific numbers, words, letters in a pattern with a text or all numbers/words in a text while using wildcards as well.

--
awyeah
Avatar of awwyeah
awwyeah

ASKER

Also don't give me lame websites or stuff I have searched alot, plus the sucky tcl manual only shows the syntax and command usage not detailed examples.
Avatar of awwyeah

ASKER

I presume no one's good with TCL on this forum. :o|
ASKER CERTIFIED SOLUTION
Avatar of F. Dominicus
F. Dominicus
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Last note. By "(e.g. glob matching patterns)" I just meant bracketed expressions. Sorry for the possible misunderstanding.
Well, I have given a few general examples about the patterns he mentioned, but having received no answer from the person who asked the question didn't help to give him exactly what he wanted.
s_fedrici is right, it's annoying to get asked, giving some anser to often very vague questions and after that you do not hear anything again. So I vote for sharing points between me and s_federicy or just taking away the points from the original poster.

Friedrich
I agree with fridom, both alternatives are ok to me.
Points refund is NOT an option at all.. :) So I need to know if there is something valuable here or we should go for delete.
Of course there is in both posting from s_federic and me. But no feed-back. The OP does not care to say anything.

Friedrich
yes, both answers address the subject of the question. They can be of help for anyone looking for help on this subject.