Quantcast
Channel: What regex could I used to extract name? - Stack Overflow
Browsing latest articles
Browse All 5 View Live

Answer by Josh for What regex could I used to extract name?

How about:^Doctor\s*:\s*(.*)This will exclude the "Doctor :" field and match anything after the colon.

View Article



Answer by heemayl for What regex could I used to extract name?

You can do::\s+(.*):\s+ matches : followed by one or more whitespaces(.*) matches anything after that i.e. the desired portion into captured group 1. Now, \1 would be JOHN A. BROWN.Demo

View Article

Image may be NSFW.
Clik here to view.

Answer by Ro Yo Mi for What regex could I used to extract name?

Description(?<=:\s).*This regular expression will do the following:find all the substring after the first colon followed by a spaceExamplesLive Examplehttps://regex101.com/r/oH4wK1/1Sample...

View Article

Answer by RoyalPotato for What regex could I used to extract name?

Regex is probably overkill for that.Instead, why not just take a substring out of the original string.Dim data As String = "Doctor : JOHN A. BROWN"Dim name As String = data.Substring(data.IndexOf(":")...

View Article

What regex could I used to extract name?

I have the string below and I want to extract the doctor's name. What regex could I used to accomplish this?Doctor : JOHN A. BROWN

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images