Python regex

What is the regex for String that starts with latin letters and ends with latin letters and allowed dash, dots and digits in between (not necessary)?

Do you mean something like this?

^[a-zA-Z]+[\.\-0-9]*[a-zA-Z]+$

1 Like

Yes, Thanks :slight_smile:

1 Like

@ssjgz Also how can I limit string length between 0 to 10 for above regex?

Dunno :slight_smile: I probably wouldn’t use a regex, though.