Getting substring by regex

  • Thread starter Christine Mayer
  • Start date
C

Christine Mayer

Hi, I got a String that is composed of digits, white space, numbers
and other characters.
Example: 03... London (first two digits of post code, plus 3 dots for
the remaining digits).

I want to go through the String and search for the first occurrence of
a letter (A-Za-Z).
Then I want the String from this point on, excluding the "post code
String" containing only numbers, whitespace and dots.
The class String seems to have a "split(regex) function, but this
didn't work for me.

Any idea how this could be done?

Thanks in advance,
 

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

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top