Manipulation of strings

N

nour

Guest
Hi! please is therer a skill function that allows me to check if a
given string begins with another given string?

I explain:

s="skill_function"
q="skill"
and i want to check that 's' contain 'q' at the beginning.

Nour
 
Nour, there are a variety of functions that will do what you want...
try looking at nindex and substring...

David

On Sep 15, 5:25 am, nour <nour.laou...@gmail.com> wrote:
Hi! please is therer a skill function that allows me to check if a
given string begins with another given string?

I explain:

s="skill_function"
q="skill"
and i want to check that 's' contain 'q' at the beginning.

Nour
 
Hi,

I'd rather go for a regular expression for this request.
Something like:
rexMatchp(strcat("^" q) s)

Cheers,
Riad.
 

Welcome to EDABoard.com

Sponsor

Back
Top