Regular Expression Problem

P

Phi!

Hello everyone,

I have had a look at some newsgroup articles but cannot seem to find
anything to hekp me so please bear with me if this is a simple
question.

I am using Regular expressions for the first time and am trying out a
simnple expression which is not working properly.

The phrase I am searching is (exlsuding quotes): -

" testing 12345 tesssssssssssting 1234"

My regex expression is : -

" te.*ting "

what I am tring to find is both instances of testing however the
program is finding the entire expression. I can see why it is doing
this but I cannot figure out how to chnage my expression to find both
"testing" and "tesssssssssssting".

I know about s* but it needs to be .* or equivelent as it could be
any letter, not just s.

If anyone can help I would appreciate it.

Many Thanks in advance

Kind regards

Phil!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top