Jump to content
Xtreme .Net Talk

Recommended Posts

  • Leaders
Posted
Do you have a list of strings that you want to process? To use regex like that you would really need a more general format. Do you want to extract the last four chars in a string? Any occurances of two digits followed by two letters? The third word in each string?
[sIGPIC]e[/sIGPIC]
Posted

Its a really long string, and I want to extract a couple key expressions, such as the example above. I guess I need to

1. Check that the expression exists

2. Extract it.

3. Replace the expression with something more meaningful.

 

For example, I have a paragraph (it's an error message), and I want to replace:

 

"Remote Company 10LC"

 

with

 

"London"

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...