I have a regular expression:
The problem is I need use this in my apex class, but unfortunately it doesn't work. I used both
String numberAddress = '818a'; Boolean test = Pattern.matches('/\\d+|[a-z]+/ig', numberAddress); List<String> splitted = numberAddress.split('/\\d+|[a-z]+/ig');
On doing system debug I get
splitted as a list with one element
818a and not
Any ideas how to make it work?