You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importregextext:="TITLE\n\nThis is a test."query:=r'^\w+$'mutre:= regex.regex_opt(query) or { panic(err) }
for m in re.find_all_str(text) {
println(m)
}
Reproduction Steps
Use the playground for the code above.
Expected Behavior
The code above should only return TITLE.
Current Behavior
Output:
TITLE
This
is
a
test
This indicates that the regex tokens ^ (for beginning of word/line) and $ (for end of word/line) are ignored. Compare the result on regex101.com with the same expression to verify that only TITLE should be matched.
Describe the bug
Code: https://play.vlang.io/p/3f533451e6
Reproduction Steps
Use the playground for the code above.
Expected Behavior
The code above should only return TITLE.
Current Behavior
Output:
This indicates that the regex tokens ^ (for beginning of word/line) and $ (for end of word/line) are ignored. Compare the result on regex101.com with the same expression to verify that only TITLE should be matched.
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.7 426205e
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: