Skip to content
Advertisement

How to extract the value between the key using RegEx?

I have text like:

JavaScript

I want to extract the characters as a list between a. For the above text, I am expecting output like:

JavaScript

I have used:

JavaScript

But it doesn’t work.

Advertisement

Answer

The ^ and $ will only match the beginning and end of a line, respectively. In this case, you will get the desired list by using the line:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement