.net - Regex with unusual characters -


I'm trying to come up with some regex to handle # sign. Example: # PRODUCT_143 #

If inputs were # PRODUCT_143, regex #PRODUCT_ (\ d * $) 143 as mail and match Returns to But adding the regex to both end of the input and causing it to break does i need to get it?

If you have tried #PRODUCT_ (\ D * $) # It is no wonder that he did not get the match. Since $ is already the end of the string and since # it will never match.

So try this instead:

  #PRODUCT_ (\ d *) # $  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -