Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make BE_RegularExpression only return groups ? #218

Open
glitchtracker opened this issue Dec 11, 2023 · 0 comments
Open

How to make BE_RegularExpression only return groups ? #218

glitchtracker opened this issue Dec 11, 2023 · 0 comments

Comments

@glitchtracker
Copy link

Hi,

here's the following code

Let (
text="1"&char(9)&"2"&char(9)&"3"&char(9)&"4"&char(9)&"5"&char(9)&"6"&char(9)&"7"&char(9)&"8"&char(9)&"9"&char(9)&"10¶A"&char(9)&"B"&char(9)&"C"&char(9)&"D"&char(9)&"E"&char(9)&"F"&char(9)&"G"&char(9)&"H"&char(9)&"I"&char(9)&"J";
BE_RegularExpression ( text ;"^(?:[^\t]*\t){2}([^\t]+)";"vm")
)

it returns

1 2 3
A B C

While it only should return

3
C

That's because BE_RegularExpression returns all the result including matching part rather than just the groups,

as you can see here

https://regex101.com/r/QZtpNa/1

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant