#RegEx in Java making my head hurt
18 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @slim parcel! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Please format your code to make it more readable.
For java, it should look like this:
````java
public void foo() {
}
````
/ shouldn't be part of the regex
/ are delimiters, like "
they aren't part of the regex's content
java doesn't have regex literals, so / isn't used
make sure you're choosing the java flavor when you test your regexes
Thank you so much! I was having such a hard time, I really appreciate it
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
Which tool are you using?
(the gm flags are a separate thing, they don't work like this, but they do for regex literals; this is probably a bug)
Thank you so much, @surreal crown You're a life saver