0

I am trying to find the java equivalent of doing the following string manipulation (vb.net):

   linkUrl = Regex.Replace(linkUrl, ".*url=", "")

Basically strip all characters up to and including the one provided. Also are there any known examples anyone can provide for similar regular expressions used in java.

1

1 Answer 1

3

You could do

linkUrl = linkUrl.replaceAll(".*url=", "");
Sign up to request clarification or add additional context in comments.

1 Comment

thanks. dumb me...I forgot about java case sensitivity and wondered why the error line was there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.