Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
public [A-Za-z\?]* ([A-Za-z0-9]*) .*
/
gim
Test String
New
public string AddressLine1 { get; set; } public string AddressLine2 { get; set; } public string AddressLine3 { get; set; } public string AddressLine4 { get; set; } public string AddressLine5 { get; set; } public string AddressLine6 { get; set; } public DateTime? Dob { get; set; } public string EmailAddress { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string PostCode { get; set; } public string PrimaryPhoneNo { get; set; } public string Title { get; set; }
Substitution
Processing...
$1 = customerDetails.$1,