Skip to content
Fix Code Error

How to match “any character” in regular expression?

March 13, 2021 by Code Error
Posted By: Anonymous

The following should be matched:

AAA123
ABCDEFGH123
✘✘✘X123

can I do: ".*123" ?

Solution

Yes, you can. That should work.

  • . = any char except newline
  • . = the actual dot character
  • .? = .{0,1} = match any char except newline zero or one times
  • .* = .{0,} = match any char except newline zero or more times
  • .+ = .{1,} = match any char except newline one or more times
Answered By: Anonymous

Related Articles

  • Problems Installing CRA & NextJS from NPM (Error:…
  • Reference - What does this regex mean?
  • shell script. how to extract string using regular…
  • What are the undocumented features and limitations of the…
  • How to use html template with vue.js
  • How to use Regular Expressions (Regex) in Microsoft Excel…
  • Regex on htaccess file gives INTERNAL REDIRECT error
  • no match for ‘operator
  • How can I set hours and minutes of date with oracle sql?
  • Trying to match today's date with list of custom dates in…

Disclaimer: This content is shared under creative common license cc-by-sa 3.0. It is generated from StackExchange Website Network.

Post navigation

Previous Post:

Oracle SELECT TOP 10 records

Next Post:

The request was aborted: Could not create SSL/TLS secure channel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Get code errors & solutions at akashmittal.com
© 2022 Fix Code Error