Text from notepad file

I want to extract HARSHADRY PVT LTD from notepad. Can anyone provide the appropriate regular expression for extracting it?
Below is the screenshot

Hi @Seema_Jethe

Try with the Below regex



@Sudharsan_Ka thanks your solution works could u please tell me how does the expression work?

1 Like

Tools like Regex101 also will give some explanations:


It will work like

  • Search for the value which is beside a “number space Legal space Name space”


@Sudharsan_Ka ok thanks so if my notepad file has text in this format then it will work everytime

Yes it will

ok thanks

1 Like

@ppr thanks

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.