RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Pattern Title
Expression
(^[A-Za-z])|(\s)([A-Za-z])
Description
This expression will return the first letter of each word in a string. Best used if you need to get initials from a name. "James Kramer" = "J K" & "Sir Richard Branson" = "S R B" & "33 yoYo 654 ma" = "y m"
Matches
James Kramer | Sir Richard Branson | 33 yoYo 654 ma
Non-Matches
33 66 4ju
Author Rating: The rating for this expression. J D
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials