Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
1 answer
23k views

Regular Expression for words with spaces

I want to check for the following strings using regExpression: 1) Main-xxxxx-Accepted 2) Main-xxx xxx-Accepted I used the below String regEx = 'Main-[aA-zZ-]*-Accepted'; Pattern.matches(regEx,'...
SFDC FanBoy's user avatar
  • 4,094